无法从 windows ssh 登录到 ubuntu
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8239716/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Unable to ssh login from windows to ubuntu
提问by Huzoor Bux
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.
请帮我。
回答by schmoopy
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.exeand create a .ppk file from your .pem file that you downloaded from amazon. 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
1.) 下载puttygen.exe并从您从亚马逊下载的 .pem 文件中创建一个 .ppk 文件。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 中运行良好
回答by Oz123
Did you install openssh-server ?
你安装了 openssh-server 吗?
aptitude install openssh-server
Then also check you don't have firewall running on your Ubuntu.
然后还要检查您的 Ubuntu 上没有运行防火墙。