xshell使用密钥登录linux服务器

 

 

wKioL1PmLFbBB4F0AAV4Vjdxw1A541.jpg

 

wKiom1PmK2nSFEcUAAFvBnj9AkY124.jpg

 

wKioL1PmLKmw_CTWAAG1u3u1Byg706.jpg

 

密钥名称自动生成,密码可以填可不填。

wKiom1PmK8OTIu1-AAFQaPmZWhA463.jpg

 

复制公钥密钥,保存文件,完成

wKioL1PmLZyyaa6kAAIkhwxeDPc439.jpg

 

进入到xshell终端 

服务器ip:192.168.1.7  

[root@localhost ~]# mkdir .ssh

[root@localhost ~]# ls -a     -a作用是可以显示隐藏的文件
.  ..  anaconda-ks.cfg  .bash_history  .bash_logout  .bash_profile  .bashrc  .cshrc  install.log  install.log.syslog  .ssh  .tcshrc  .viminfo

[root@localhost ~]# vim .ssh/authorized_keys

#shell-key



ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAyQKMZSX5iSExBaxpzYK9beBemDmolLAPQb8t/uy/wOf8dboLo4JCKH+oTRNAvCzRgnazQzhWqWeiWVA+i1aShqlvjLFprCTSh2ao6BcD9eD/HWFbq8USRqb0ZN+Hm9RAV0NrX/6wssGVrCJ//Okur/2cxJh3E2tSI4meuawKQSAOoBVdJKNbioQDI+CRKE9n+PH3UyynxcUf+gu+JvHRSO+ByJtZHcde1x3h4mf6zc5SZIi6AeaNxWVu3picbOkwm5XpWM8BX9IEsKf/TDgmCzArdFmxBw8qGSOV2yYhwbzQE9p628W66eYMGHarvFpRnvLuk3D/B2ThYqJN8EY9WQ==

 

wKiom1PmLfTyC2wqAAIQ2EwRdkk899.jpg

wKiom1PmLfuiEXGKAAUy-0dCVB4242.jpg

 

wKiom1PmKtDw_1cMAAWV-DvLk6g375.jpg

 

ok  使用密钥登录配置成功。

 

你可能感兴趣的:(linux,xshell,密钥登录)