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

来源:互联网 发布:万象ol怎么清除数据库 编辑:程序博客网 时间:2024/06/06 09:07

Mac预装了ssh,但是并没有开启远程登录,运行以下命令查看

➜  ~ sudo systemsetup -getremoteloginRemote Login: Off

可以看到是关闭状态,运行以下命令启动远程访问

➜  ~ sudo systemsetup -setremotelogin on

测试

ssh localhost
阅读全文
0 0