mirror of
https://github.com/rclone/rclone.git
synced 2026-01-24 23:19:44 -05:00
sftp: specify HostKeyCallback in ClientConfig
This commit is contained in:
committed by
Nick Craig-Wood
parent
77cd93ef89
commit
bd2cdeeeab
@@ -90,9 +90,10 @@ func NewFs(name, root string) (fs.Fs, error) {
|
||||
port = "22"
|
||||
}
|
||||
config := &ssh.ClientConfig{
|
||||
User: user,
|
||||
Auth: []ssh.AuthMethod{},
|
||||
Timeout: fs.Config.ConnectTimeout,
|
||||
User: user,
|
||||
Auth: []ssh.AuthMethod{},
|
||||
HostKeyCallback: ssh.InsecureIgnoreHostKey(),
|
||||
Timeout: fs.Config.ConnectTimeout,
|
||||
}
|
||||
if pass == "" {
|
||||
authSock := os.Getenv("SSH_AUTH_SOCK")
|
||||
|
||||
Reference in New Issue
Block a user