1.9使用putty远程连接Linux
VMware虚拟机是有快照功能,类似于备份的功能,如果后面的操作出现问题,你可以恢复到前面的某个时刻的快照。快照很小,不会占用太多的磁盘空间。
两个客户端软件putty and Xshell
putty和xshell是用来远程连接ip的(可以用户名密码或密钥来登录)
putty download address
https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
1、open putty
2、set up a session(add ip address and port)
3、create a name
Click Windows tab, Control the scroll back in the window
Lines of scrollback 200 (this number could be modification)
you can modified the appearance
4、save
如果ping不通,需要重启服务 *systemctl restart network.service*
1.10使用xshell连接linux
1、新建会话
2、设置外观
3、填写用户名密码
4、终端断开,证明会话场景有点短。
xshell可以多窗口;
1.11putty密钥认证
一对加密的字符串,客户端放私钥,服务器放公钥,私钥和公钥配对成功,认证成功。
1、open putty key generator and click the Generate
2、set a key passphrase and then click "save public key and” “save private key"
3、mkdir /root/.ssh
创建目录
4、chmod 700 /root/.ssh
5、vi /root/.ssh/authorizedkeys
(保存public key)
6、setenforce 0// close selinux
7、配置private key(image)
https://blog.csdn.net/gavin__fan/article/details/50443395
1.12 xshell密钥认证
同putty类似