简体   繁体   English

无法从Windows SSH登录到ubuntu

[英]Unable to ssh login from windows to ubuntu

I am trying to login on my ubuntu server from windows pc using putty ssh but it says connection refused. 我正在尝试使用putty ssh从Windows pc登录我的ubuntu服务器,但是它说连接被拒绝。

I am able lo login on ubuntu using command 我可以使用命令在ubuntu上登录

$ ssh root@MY-IP-ADDRESS $ ssh root @ MY-IP-ADDRESS

not able to login using remote server. 无法使用远程服务器登录。

Please Help me. 请帮我。

I was having the same issue and nothing was working for me to connect to ec2 linux instance from Windows 7. Here is how i was finally able to connect. 我遇到了同样的问题,没有任何事情可以使我从Windows 7连接到ec2 linux实例。这就是我最终能够进行连接的方式。

1.) Download puttygen.exe and create a .ppk file from your .pem file that you downloaded from amazon. 1.)下载puttygen.exe,并从您从亚马逊下载的.pem文件中创建一个.ppk文件。 2.) Use FireSSH (plug-in for Firefox), put in your host name, use 'ubuntu' (minus the quotes) for the Login, leave password blank and enter the location of the .ppk you created from puttygen.exe 2.)使用FireSSH(用于Firefox的插件),输入主机名,使用“ ubuntu”(减去引号)进行登录,将密码留空,然后输入从puttygen.exe创建的.ppk的位置

Note: Oddly enough i was not able to connect using putty.exe but the private key it generates works fine with FireSSH 注意:奇怪的是我无法使用putty.exe进行连接,但是它生成的私钥在FireSSH上可以正常使用

Did you install openssh-server ? 您安装了openssh-server吗?

   aptitude install openssh-server

Then also check you don't have firewall running on your Ubuntu. 然后还要检查您的Ubuntu上没有运行防火墙。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM