mac下 ssh: connect to host localhost port 22: Connection refused

ssh localhost
//ssh: connect to host localhost port 22: Connection refused

# 开启远程连接
sudo systemsetup -f -setremotelogin on

ssh localhost 
//ok

或者通过界面设置

系统偏好设置->共享->远程登录

参考
解决mac下 ssh: connect to host localhost port 22: Connection refused

发布了1488 篇原创文章 · 获赞 454 · 访问量 158万+

猜你喜欢

转载自blog.csdn.net/mouday/article/details/105326887