ssh不会连接到linux vm [英] ssh will not connect to linux vm

查看:88
本文介绍了ssh不会连接到linux vm的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


 我无法使用putty ssh进入我的Linux vm。我正在使用免费试用版,并且已经完成了我能找到的所有故障排除,但仍然得到"服务器拒绝我们的密钥"。我已经尝试使用putty gen和gitbash为windows
生成密钥而没有运气。当我收到"服务器拒绝我们的密钥"消息时,系统会提示我输入密码,这会让我"拒绝访问"。在天蓝色的门户网站中,我尝试重置配置,重置ssh密钥并重置密码,没有运气。我也尝试重新部署
vm并获得相同的错误。



由于这是全新安装,因此有安全设置还是我缺少的东西?


任何建议都会受到赞赏..

解决方案


我认为你没有正确地遵循这个程序。


我试图在工作场景的帮助下解释


1。在'puttygen'密钥生成器应用程序中生成公钥


2。根据需要输入密码


3。将私钥保存为扩展名为.ppk的文件。



4。从Azure门户创建VM时,请确保在以下框中放置用户名和SSH公钥。



5。在Azure门户中完成VM创建后,将VM与Putty连接。分配ppk文件并输入用户名,密码。用户名是您在创建虚拟机时在Azure门户中键入的名称,密码是您键入的密码,而
在Putty Gen中创建私钥


希望,这些步骤将有所帮助你


Hello,

 I am unable to ssh into my Linux vm using putty. I am on the free trial version and have gone through all troubleshooting that I can find but keep getting 'Server refused our key'. I've tried generating keys using putty gen and gitbash for windows with no luck. When I get the 'Server refused our key' message I am prompted for my password, this is giving me 'access denied'. In the azure portal I have tried resetting config, reset ssh key and reset password with no luck. I have also tried redeploying the vm and get the same errors.

Since this is a fresh install is there a security setting or something I am missing?

Any advice would be appreciated..

解决方案

Hi,

I think you are not following the procedure correctly.

I am trying to explain with the help of a working scenario

1. Generate the public key in 'puttygen' key generator application

2. Type a password as required

3. Save private key as a file with extension .ppk

4. When Create VM from Azure portal, make sure that you put a username and SSH Public key in the following boxes.

5. Once the VM creation is completed in Azure portal, connect the VM with Putty. Assign the ppk file and type the username, password. Username is the name you typed in Azure portal while doing the VM creation and password is the password you typed while creating the Private key in Putty Gen

Hope, the steps will help you


这篇关于ssh不会连接到linux vm的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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