sftp: specify HostKeyCallback in ClientConfig
This commit is contained in:
parent
77cd93ef89
commit
bd2cdeeeab
1 changed files with 4 additions and 3 deletions
|
@ -92,6 +92,7 @@ func NewFs(name, root string) (fs.Fs, error) {
|
||||||
config := &ssh.ClientConfig{
|
config := &ssh.ClientConfig{
|
||||||
User: user,
|
User: user,
|
||||||
Auth: []ssh.AuthMethod{},
|
Auth: []ssh.AuthMethod{},
|
||||||
|
HostKeyCallback: ssh.InsecureIgnoreHostKey(),
|
||||||
Timeout: fs.Config.ConnectTimeout,
|
Timeout: fs.Config.ConnectTimeout,
|
||||||
}
|
}
|
||||||
if pass == "" {
|
if pass == "" {
|
||||||
|
|
Loading…
Add table
Reference in a new issue