做了个shellsftp 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'