问题描述
- shell里调用sftp加了参数-o就报错
-
做了个shell
sftp XXX@XXX没报错
但是为了防止连接不上加了个-o超时属性就报错
sftp -o ConnectTime=3 XXX@XXX
是不是sshd的配置文件配的不对,ssh属性传不进去啊
解决方案
ConnectTimeout , not ConnectTime, please firstyly use man:
man sftp, then search -o , then you can find only exist 'ConnectTimeout'
时间: 2024-09-04 05:58:02