autossh icon indicating copy to clipboard operation
autossh copied to clipboard

密码中包含'-'符号会报错

Open xingfanxia opened this issue 8 years ago • 1 comments

密码中包含-符号会报错。

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)

xingfanxia avatar Sep 24 '16 19:09 xingfanxia

可以在密码上 加 -- 或者修改代码 send -- -testpassword即可

aguaiyoung avatar Jan 17 '18 09:01 aguaiyoung