270 lines
11 KiB
Plaintext
270 lines
11 KiB
Plaintext
.modal-body
|
|
ul.nav-tabs(ngbNav, #nav='ngbNav')
|
|
li(ngbNavItem)
|
|
a(ngbNavLink) General
|
|
ng-template(ngbNavContent)
|
|
.form-group
|
|
label Name
|
|
input.form-control(
|
|
type='text',
|
|
autofocus,
|
|
[(ngModel)]='connection.name',
|
|
)
|
|
|
|
.form-group
|
|
label Group
|
|
input.form-control(
|
|
type='text',
|
|
placeholder='Ungrouped',
|
|
[(ngModel)]='connection.group',
|
|
[ngbTypeahead]='groupTypeahead',
|
|
)
|
|
|
|
.d-flex.w-100(*ngIf='!useProxyCommand')
|
|
.form-group.w-100.mr-4
|
|
label Host
|
|
input.form-control(
|
|
type='text',
|
|
[(ngModel)]='connection.host',
|
|
)
|
|
|
|
.form-group
|
|
label Port
|
|
input.form-control(
|
|
type='number',
|
|
placeholder='22',
|
|
[(ngModel)]='connection.port',
|
|
)
|
|
|
|
.alert.alert-info(*ngIf='useProxyCommand')
|
|
.mr-auto Using a proxy command instead of a network connection
|
|
|
|
.form-group
|
|
label Username
|
|
input.form-control(
|
|
type='text',
|
|
[(ngModel)]='connection.user',
|
|
)
|
|
|
|
.form-group
|
|
label Authentication method
|
|
|
|
.btn-group.mt-1.w-100(
|
|
[(ngModel)]='connection.auth',
|
|
ngbRadioGroup
|
|
)
|
|
label.btn.btn-secondary(ngbButtonLabel)
|
|
input(type='radio', ngbButton, [value]='null')
|
|
i.far.fa-lightbulb
|
|
.m-0 Auto
|
|
label.btn.btn-secondary(ngbButtonLabel)
|
|
input(type='radio', ngbButton, [value]='"password"')
|
|
i.fas.fa-font
|
|
.m-0 Password
|
|
label.btn.btn-secondary(ngbButtonLabel)
|
|
input(type='radio', ngbButton, [value]='"publicKey"')
|
|
i.fas.fa-key
|
|
.m-0 Key
|
|
label.btn.btn-secondary(ngbButtonLabel, ng:if='hostApp.platform !== Platform.Web')
|
|
input(type='radio', ngbButton, [value]='"agent"')
|
|
i.fas.fa-user-secret
|
|
.m-0 Agent
|
|
label.btn.btn-secondary(ngbButtonLabel)
|
|
input(type='radio', ngbButton, [value]='"keyboardInteractive"')
|
|
i.far.fa-keyboard
|
|
.m-0 Interactive
|
|
|
|
.form-line(*ngIf='!connection.auth || connection.auth === "password"')
|
|
.header
|
|
.title Password
|
|
.description(*ngIf='!hasSavedPassword') Save a password in the keychain
|
|
.description(*ngIf='hasSavedPassword') There is a saved password for this connection
|
|
button.btn.btn-outline-success.ml-4(*ngIf='!hasSavedPassword', (click)='setPassword()')
|
|
i.fas.fa-key
|
|
span Set password
|
|
button.btn.btn-danger.ml-4(*ngIf='hasSavedPassword', (click)='clearSavedPassword()')
|
|
i.fas.fa-trash-alt
|
|
span Forget
|
|
|
|
.form-group(*ngIf='!connection.auth || connection.auth === "publicKey"')
|
|
label Private keys
|
|
.list-group.mb-2
|
|
.list-group-item.d-flex.align-items-center.p-1.pl-3(*ngFor='let path of connection.privateKeys')
|
|
i.fas.fa-key
|
|
.no-wrap.mr-auto {{path}}
|
|
button.btn.btn-link((click)='removePrivateKey(path)')
|
|
i.fas.fa-trash
|
|
button.btn.btn-secondary((click)='addPrivateKey()')
|
|
i.fas.fa-folder-open
|
|
span Add a private key
|
|
|
|
li(ngbNavItem)
|
|
a(ngbNavLink) Ports
|
|
ng-template(ngbNavContent)
|
|
ssh-port-forwarding-config(
|
|
[model]='connection.forwardedPorts',
|
|
(forwardAdded)='onForwardAdded($event)',
|
|
(forwardRemoved)='onForwardRemoved($event)'
|
|
)
|
|
|
|
li(ngbNavItem)
|
|
a(ngbNavLink) Advanced
|
|
ng-template(ngbNavContent)
|
|
.form-line(*ngIf='!useProxyCommand')
|
|
.header
|
|
.title Jump host
|
|
select.form-control([(ngModel)]='connection.jumpHost')
|
|
option(value='') None
|
|
option([ngValue]='x.name', *ngFor='let x of config.store.ssh.connections') {{x.name}}
|
|
|
|
.form-line(ng:if='hostApp.platform !== Platform.Web')
|
|
.header
|
|
.title X11 forwarding
|
|
toggle([(ngModel)]='connection.x11')
|
|
|
|
.form-line(ng:if='hostApp.platform !== Platform.Web')
|
|
.header
|
|
.title Agent forwarding
|
|
toggle([(ngModel)]='connection.agentForward')
|
|
|
|
.form-line
|
|
.header
|
|
.title Tab color
|
|
input.form-control(
|
|
type='text',
|
|
autofocus,
|
|
[(ngModel)]='connection.color',
|
|
placeholder='#000000'
|
|
)
|
|
|
|
.form-line
|
|
.header
|
|
.title Disable dynamic tab title
|
|
.description Connection name will be used as a title instead
|
|
toggle([(ngModel)]='connection.disableDynamicTitle')
|
|
|
|
.form-line
|
|
.header
|
|
.title Skip MoTD/banner
|
|
.description Will prevent the SSH greeting from showing up
|
|
toggle([(ngModel)]='connection.skipBanner')
|
|
|
|
.form-line
|
|
.header
|
|
.title Keep Alive Interval (Milliseconds)
|
|
input.form-control(
|
|
type='number',
|
|
placeholder='0',
|
|
[(ngModel)]='connection.keepaliveInterval',
|
|
)
|
|
|
|
.form-line
|
|
.header
|
|
.title Max Keep Alive Count
|
|
input.form-control(
|
|
type='number',
|
|
placeholder='3',
|
|
[(ngModel)]='connection.keepaliveCountMax',
|
|
)
|
|
|
|
.form-line
|
|
.header
|
|
.title Ready Timeout (Milliseconds)
|
|
input.form-control(
|
|
type='number',
|
|
placeholder='20000',
|
|
[(ngModel)]='connection.readyTimeout',
|
|
)
|
|
|
|
.form-line(*ngIf='!connection.jumpHost && hostApp.platform !== Platform.Web')
|
|
.header
|
|
.title Use a proxy command
|
|
.description Command's stdin/stdout is used instead of a network connection
|
|
toggle([(ngModel)]='useProxyCommand')
|
|
|
|
.form-group(*ngIf='useProxyCommand && !connection.jumpHost')
|
|
label Proxy command
|
|
input.form-control(
|
|
type='text',
|
|
[(ngModel)]='connection.proxyCommand',
|
|
)
|
|
|
|
li(ngbNavItem)
|
|
a(ngbNavLink) Ciphers
|
|
ng-template(ngbNavContent)
|
|
.form-line.align-items-start
|
|
.header
|
|
.title Ciphers
|
|
.w-75
|
|
div(*ngFor='let alg of supportedAlgorithms.cipher')
|
|
checkbox([text]='alg', [(ngModel)]='algorithms.cipher[alg]')
|
|
|
|
.form-line.align-items-start
|
|
.header
|
|
.title Key exchange
|
|
.w-75
|
|
div(*ngFor='let alg of supportedAlgorithms.kex')
|
|
checkbox([text]='alg', [(ngModel)]='algorithms.kex[alg]')
|
|
|
|
.form-line.align-items-start
|
|
.header
|
|
.title HMAC
|
|
.w-75
|
|
div(*ngFor='let alg of supportedAlgorithms.hmac')
|
|
checkbox([text]='alg', [(ngModel)]='algorithms.hmac[alg]')
|
|
|
|
.form-line.align-items-start
|
|
.header
|
|
.title Host key
|
|
.w-75
|
|
div(*ngFor='let alg of supportedAlgorithms.serverHostKey')
|
|
checkbox([text]='alg', [(ngModel)]='algorithms.serverHostKey[alg]')
|
|
|
|
li(ngbNavItem)
|
|
a(ngbNavLink) Login scripts
|
|
ng-template(ngbNavContent)
|
|
table(*ngIf='connection.scripts.length > 0')
|
|
tr
|
|
th String to expect
|
|
th String to be sent
|
|
th.pl-2 Regex
|
|
th.pl-2 Optional
|
|
th.pl-2 Actions
|
|
tr(*ngFor='let script of connection.scripts')
|
|
td.pr-2
|
|
input.form-control(
|
|
type='text',
|
|
[(ngModel)]='script.expect'
|
|
)
|
|
td
|
|
input.form-control(
|
|
type='text',
|
|
[(ngModel)]='script.send'
|
|
)
|
|
td.pl-2
|
|
checkbox(
|
|
[(ngModel)]='script.isRegex',
|
|
)
|
|
td.pl-2
|
|
checkbox(
|
|
[(ngModel)]='script.optional',
|
|
)
|
|
td.pl-2
|
|
.input-group.flex-nowrap
|
|
button.btn.btn-outline-info.ml-0((click)='moveScriptUp(script)')
|
|
i.fas.fa-arrow-up
|
|
button.btn.btn-outline-info.ml-0((click)='moveScriptDown(script)')
|
|
i.fas.fa-arrow-down
|
|
button.btn.btn-outline-danger.ml-0((click)='deleteScript(script)')
|
|
i.fas.fa-trash
|
|
|
|
button.btn.btn-outline-info.mt-2((click)='addScript()')
|
|
i.fas.fa-plus
|
|
span New item
|
|
|
|
div([ngbNavOutlet]='nav')
|
|
|
|
.modal-footer
|
|
button.btn.btn-outline-primary((click)='save()') Save
|
|
button.btn.btn-outline-danger((click)='cancel()') Cancel
|