mirror of
https://github.com/rclone/rclone.git
synced 2025-06-26 06:51:36 +02:00
sftp: specify HostKeyCallback in ClientConfig
This commit is contained in:
parent
77cd93ef89
commit
bd2cdeeeab
@ -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 == "" {
|
||||
|
Loading…
x
Reference in New Issue
Block a user