mac connect to host localhost port 22: Connection refused

Posted Alamps 沁园春

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mac connect to host localhost port 22: Connection refused相关的知识,希望对你有一定的参考价值。

在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的主要内容,如果未能解决你的问题,请参考以下文章

Mac 上的 Django + XAMPP (2002, "Can't connect to local MySQL server through socket '/tmp/mysql.so

Mac端解决:Can't connect to local MySQL server through socket '/tmp/mysql.sock'

mac ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock&

Mac mySql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/my

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) on Mac

mac使用brew安装mysql报RROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp