Use the legacy SCP protocol for directory transfers instead of SFTP
This commit is contained in:
parent
24b6749504
commit
cc1261b0b0
@ -378,7 +378,7 @@ func (q System) scp(user, localPath, remotePath string, recursive bool) (err err
|
|||||||
}
|
}
|
||||||
|
|
||||||
if recursive {
|
if recursive {
|
||||||
args = append(args, "-r")
|
args = append(args, "-O", "-r")
|
||||||
}
|
}
|
||||||
|
|
||||||
args = append(args, localPath, user+"@"+addr+":"+remotePath)
|
args = append(args, localPath, user+"@"+addr+":"+remotePath)
|
||||||
|
Loading…
Reference in New Issue
Block a user