Fix ssh outbound
This commit is contained in:
parent
8a53846efd
commit
f5b15b392b
1 changed files with 3 additions and 0 deletions
|
|
@ -122,6 +122,9 @@ func (s *SSH) connect() (*ssh.Client, error) {
|
|||
Auth: s.authMethod,
|
||||
ClientVersion: s.clientVersion,
|
||||
HostKeyAlgorithms: s.hostKeyAlgorithms,
|
||||
HostKeyCallback: func(hostname string, remote net.Addr, key ssh.PublicKey) error {
|
||||
return nil
|
||||
},
|
||||
}
|
||||
clientConn, chans, reqs, err := ssh.NewClientConn(conn, s.serverAddr.Addr.String(), config)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue