1.在Mac中修改 /etc/ssh/sshd_config文件,开启ssh协议
将其中的PermitRootLogin yes添加进去
上一句意思是 允许root登录 但禁止使用密码登录
下一句 允许root登录
2.修改完保存,重新开启ssh服务
sudo launchctl unload -w /System/Library/LaunchDaemons/ssh.plist关闭
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist开启
3.连接Linux
ssh root@192.168.76.215
如果提示权限不够,重新输入密码
就到Linux中修改root密码
passwd root
修改之重新登录,即可
mac远程连接 Linux(或者其他远程服务器)
最新推荐文章于 2023-04-14 10:59:52 发布