码迷,mamicode.com
首页 > 系统相关 > 详细

mac connect to host localhost port 22: Connection refused

时间:2017-12-17 15:04:42      阅读:259      评论:0      收藏:0      [点我收藏+]

标签:ack   nbsp   命令   over   com   pen   refused   ref   ado   

在Mac OS X 10.10.5学习hadoop的过程中,输入命令ssh localhost得到
ssh: connect to host localhost port 22: Connection refused
解决方法是选择系统偏好设置->选择共享->点击远程登录
然后再输入命令ssh localhost发现已经解决问题

找到解决方案来自于
http://stackoverflow.com/questions/6313929/how-do-i-open-port-22-in-os-x-10-6-7

 

mac connect to host localhost port 22: Connection refused

标签:ack   nbsp   命令   over   com   pen   refused   ref   ado   

原文地址:http://www.cnblogs.com/alamps/p/8052014.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!