plink的登录语法使用ip,username和密码 [英] Login syntax for plink using ip, username, and password

查看:1165
本文介绍了plink的登录语法使用ip,username和密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试通过命令行使用plink使用以下语法连接到虚拟机:

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"

但我一直得到这个

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

当我使用ip地址运行plink时,我可以使用我的凭证登录。

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

我已经环顾四周,常见的解决方案是检查PuTTY是否有默认设置,因为plink将使用那些,但没有默认设置,所以应该使用我的参数。

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.

在命令行中使用ip地址,用户名和密码参数时,我应该使用不同的语法吗?

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

推荐答案

我想出了问题。如果我删除命令中的引号,它运行正常。

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

这篇关于plink的登录语法使用ip,username和密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆