Centos7.5 如何通过Xshell 使用密钥登录服务器

Posted 玩电脑的辣条哥

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Centos7.5 如何通过Xshell 使用密钥登录服务器相关的知识,希望对你有一定的参考价值。

环景:

本地华为桌面云服务器环境
Centos 7.5
Xshell 5.0

问题描述:

Centos7.5 如何通过Xshell 使用密钥登录服务器

解决方案:

1.生成秘钥对,看到提示可以直接敲回车

[root@localhost ~]# ssh-keygen

Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again:    输入密码
Enter same passphrase again:    再输一次
Your identification has been saved in /root/.ssh/id_rsa. 私钥位置
Your public key has been saved in

以上是关于Centos7.5 如何通过Xshell 使用密钥登录服务器的主要内容,如果未能解决你的问题,请参考以下文章

基于Xshell使用密钥方式连接远程主机

Xshell密钥认证

Linux学习笔记---Xshell通过公钥连接CentOS系统

使用xshell密钥对方式连接linux主机

如何使用XShell登录亚马逊EC2云服务器

xshell 密钥登陆