mirror of
https://github.com/Eugeny/tabby.git
synced 2025-10-05 22:44:55 +00:00
show ssh connection errors
This commit is contained in:
@@ -117,20 +117,24 @@ export class SSHService {
|
|||||||
agent = process.env.SSH_AUTH_SOCK
|
agent = process.env.SSH_AUTH_SOCK
|
||||||
}
|
}
|
||||||
|
|
||||||
ssh.connect({
|
try {
|
||||||
host: connection.host,
|
ssh.connect({
|
||||||
port: connection.port || 22,
|
host: connection.host,
|
||||||
username: connection.user,
|
port: connection.port || 22,
|
||||||
password: connection.privateKey ? undefined : '',
|
username: connection.user,
|
||||||
privateKey,
|
password: connection.privateKey ? undefined : '',
|
||||||
passphrase: privateKeyPassphrase,
|
privateKey,
|
||||||
tryKeyboard: true,
|
passphrase: privateKeyPassphrase,
|
||||||
agent,
|
tryKeyboard: true,
|
||||||
agentForward: !!agent,
|
agent,
|
||||||
keepaliveInterval: connection.keepaliveInterval,
|
agentForward: !!agent,
|
||||||
keepaliveCountMax: connection.keepaliveCountMax,
|
keepaliveInterval: connection.keepaliveInterval,
|
||||||
readyTimeout: connection.readyTimeout,
|
keepaliveCountMax: connection.keepaliveCountMax,
|
||||||
})
|
readyTimeout: connection.readyTimeout,
|
||||||
|
})
|
||||||
|
} catch (e) {
|
||||||
|
this.toastr.error(e.message)
|
||||||
|
}
|
||||||
|
|
||||||
let keychainPasswordUsed = false
|
let keychainPasswordUsed = false
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user