Login syntax for plink using ip, username, and password

心已入冬 提交于 2019-12-13 09:47:26

问题


I'm trying to connect to a VM through the command line using plink with this syntax:

plink -v "123.123.12.100 -l user -pw pass"

But I keep getting this

Looking up host "123.123.12.100-luser-pwpass"
Unable to open connection:
Host does not exist

When I just run plink with the ip address, I am able to login with my credentials.

I've looked around and the common solution is to check to see if PuTTY has default settings because then plink will use those, but there are no default settings, so it should use my arguments.

Should I be using a different syntax when using the ip address, username, and password arguments with plink in the command line?


回答1:


I figured out the problem. If I remove the quotes from the command, it runs fine.



来源:https://stackoverflow.com/questions/12844944/login-syntax-for-plink-using-ip-username-and-password

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!