Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

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

Open
xingfanxia opened this issue Sep 24, 2016 · 1 comment
Open

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

xingfanxia opened this issue Sep 24, 2016 · 1 comment

Comments

@xingfanxia
Copy link

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

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)
@aguaiyoung
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants