mac不用安装xshell,secureCRT等工具用mac的终端就可以连接服务器。
1、打开终端,输入sudo su - 回车进入根目录
2、然后输入:ssh 服务器用户名@ip (如:ssh [email protected])如图中1
3.回车,到这会让你输入yes或者no来确认是否连接,输入yes回车(若登录过一次就如上图不会出现)
4.然后输入服务器用户的密码回车 如图中2
5.到此进入的是你在服务器上的账户的目录,即为连接成功 如图中3,那么你就可以愉快的在上面玩耍了。
===============================
服务器链接常见问题处理
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:/bOK6gRbB2d/vsOFJdJXupq2G8QB6YavX3izznaKyjs.
Please contact your system administrator.
Add correct host key in /Users/huayu/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/huayu/.ssh/known_hosts:1
ECDSA host key for 192.168.225.201 has changed and you have requested strict checking.
Host key verification failed.
huadeMBP:~ huayu$ ssh-keygen -R 192.168.225.201 //
若有问题欢迎大家与我互动交流,可评论,可留言,希望我们大家能一起学习,共同进步。