Mac 连接远程服务器

版权声明:阿西莫多 https://blog.csdn.net/yang_yun_hao/article/details/81533658
切换到root:sudo -i
输入ssh root@+ip:ssh [email protected] 
然后显示 [email protected]'s password:
直接在password后面输入密码回车
这时输入密码是不会显示密码回车后cd / 
ls -l查看所有目录发现已经切换到linux服务器上了。

断开ssh连接:logout
切换到普通用户: su - AarthiModoo (AarthiModoo 为用户名)

猜你喜欢

转载自blog.csdn.net/yang_yun_hao/article/details/81533658