mirror of
https://github.com/Eugeny/tabby.git
synced 2025-10-04 22:14: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
|
||||
}
|
||||
|
||||
ssh.connect({
|
||||
host: connection.host,
|
||||
port: connection.port || 22,
|
||||
username: connection.user,
|
||||
password: connection.privateKey ? undefined : '',
|
||||
privateKey,
|
||||
passphrase: privateKeyPassphrase,
|
||||
tryKeyboard: true,
|
||||
agent,
|
||||
agentForward: !!agent,
|
||||
keepaliveInterval: connection.keepaliveInterval,
|
||||
keepaliveCountMax: connection.keepaliveCountMax,
|
||||
readyTimeout: connection.readyTimeout,
|
||||
})
|
||||
try {
|
||||
ssh.connect({
|
||||
host: connection.host,
|
||||
port: connection.port || 22,
|
||||
username: connection.user,
|
||||
password: connection.privateKey ? undefined : '',
|
||||
privateKey,
|
||||
passphrase: privateKeyPassphrase,
|
||||
tryKeyboard: true,
|
||||
agent,
|
||||
agentForward: !!agent,
|
||||
keepaliveInterval: connection.keepaliveInterval,
|
||||
keepaliveCountMax: connection.keepaliveCountMax,
|
||||
readyTimeout: connection.readyTimeout,
|
||||
})
|
||||
} catch (e) {
|
||||
this.toastr.error(e.message)
|
||||
}
|
||||
|
||||
let keychainPasswordUsed = false
|
||||
|
||||
|
Reference in New Issue
Block a user