利用putty登陆vagrant ssh

来源:互联网 发布:新淘宝怎么改收货地址 编辑:程序博客网 时间:2024/04/30 07:46

1.利用vagrant 脚本安装完虚拟机以后,如果在windows下想利用ssh登陆虚拟机,输入以下命令,会报错:

`ssh` executable not found in any directories in the %PATH% variable. Is an
SSH client installed? Try installing Cygwin, MinGW or Git, all of which
contain an SSH client. Or use your favorite SSH client with the following
authentication information shown below:

Host: 127.0.0.1
Port: 2222
Username: vagrant
Private key: C:/Users/dxhl/.vagrant.d/insecure_private_key


2.所以考虑利用putty工具登陆虚拟机。

   vagrant提供的 Private key: C:/Users/dxhl/.vagrant.d/insecure_private_key 是RSA密钥,不能用于putty的登陆。还需要利用putty自带的puttygen.exe工具,把Private key 转换为putty能够使用的.ppk文件以后,就可以利用putty.exe登陆 虚拟机服务器了。


3.利用密钥登陆的方法可参考百度经验。

http://jingyan.baidu.com/article/73c3ce28c261bde50243d978.html


0 0
原创粉丝点击