1. 程式人生 > >mac connect to host localhost port 22: Connection refused

mac connect to host localhost port 22: Connection refused

解決 問題 host color class body 遠程 得到 pen

在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