简体   繁体   English

ssh:尝试从主机(centOS 6.5)到来宾服务器的SSH时,连接被拒绝(在oracle虚拟机上,ubuntu 15)

[英]ssh: Connection refused while trying ssh from host (centOS 6.5) to guest server (on oracle virtual box, ubuntu 15)

I have setup ubuntu 15 on oracle virtual box on centOS 6.5 (host), using Bridged Network utility. 我已使用Bridged Network Utility在centOS 6.5(主机)的oracle虚拟盒上设置了ubuntu 15。 When I'm login from guest server to host server using ssh, it works fine but if I am trying to login from host server to guest, it throws an error: 当我使用ssh从来宾服务器登录到主机服务器时,工作正常,但是如果我尝试从主机服务器登录到来宾服务器,则会引发错误:

ssh: connect to host 10.0.41.143 port 22: Connection refused

FYI, 仅供参考,

 Host IP:  10.0.61.49
 Guest IP: 10.0.41.143

Check for firewall. 检查防火墙。 It could be blocking the incoming connection on port 22. 它可能会阻止端口22上的传入连接。

Thanks FreudianSlip, I had only ssh client on my guest server, but not ssh-server daemon. 感谢FreudianSlip,我的访客服务器上只有ssh客户端,而没有ssh-server守护程序。 Installation of ssh-server, resolved the problem :) 安装ssh-server,解决了问题:)

Adding as an answer (copied from my comments on the OPs question) so that others may find the answer more easily. 添加为答案(摘自我对OP问题的评论),以便其他人可以更轻松地找到答案。 (and Hemant can mark it as correct :) ) (Hemant可以将其标记为正确的:))

Is the ssh daemon running on the guest? ssh守护程序是否在客户机上运行?

There is a ssh client (the one you use to login from) and a ssh server - the target machine you're trying to login to .. you may have the client on the guest, but not the server (sshd) 有一个ssh客户端(您用于登录的客户端)和一个ssh服务器-您尝试登录的目标计算机..您可能在客户机上有客户端,但没有服务器(sshd)

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

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