autossh
autossh copied to clipboard
密码中包含'-'符号会报错
密码中包含-
符号会报错。
Server Number:2
spawn ssh -p22 -l root testsite
": must be -i, -h, -s, -null, -0, -raw, -break, or --
while executing
"send -testpassword\r"
(file "/tmp/.login.sh" line 5)
可以在密码上 加 -- 或者修改代码 send -- -testpassword即可