sftp: specify HostKeyCallback in ClientConfig

This commit is contained in:
Igor Kharin 2017-05-15 20:00:07 +07:00 committed by Nick Craig-Wood
parent 77cd93ef89
commit bd2cdeeeab

View File

@ -92,6 +92,7 @@ func NewFs(name, root string) (fs.Fs, error) {
config := &ssh.ClientConfig{
User: user,
Auth: []ssh.AuthMethod{},
HostKeyCallback: ssh.InsecureIgnoreHostKey(),
Timeout: fs.Config.ConnectTimeout,
}
if pass == "" {