远程连接linux是一种方便的可移动控制linux的一种方式,其中本篇介绍putty和xsheel远程连接和密钥登录步骤

1.putty远程连接linux(如下图所示)

(1)先确认IP地址

putty和xsheel远程连接centos7

 (2)打开putty设置如下图所示

putty和xsheel远程连接centos7

(3)输入root用户名和密码登录

putty和xsheel远程连接centos7

2.xsheel登录

(1)输入IP

putty和xsheel远程连接centos7

(2)登录身份验证填入root用户和密码即可

putty和xsheel远程连接centos7

(3)成功登录

3.putty密钥登录

1.打开putty包的“puttygen.exe”

2.按下Generate移动鼠标

3.生成密钥

 putty和xsheel远程连接centos7

我保存到桌面的私钥文件(下面会用到)

putty和xsheel远程连接centos7

 

 

复制公钥

[root@localhost ~]# mkdir /root/.ssh

[root@localhost ~]# chmod 700 /root/.ssh/

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

[root@localhost ~]# setenforce 0

putty和xsheel远程连接centos7

把刚才保存的下面那个文件加载到这里来箭头地方来

putty和xsheel远程连接centos7

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

打开复制公钥保存即可

然后成功登录就ok了

4.xsheel密钥登录

(1)点击工具-用户密码管理(如下所示)

putty和xsheel远程连接centos7

 (2)生成密钥

putty和xsheel远程连接centos7

(3)保存到与putty一样的那个配置文件即可(另起一行#xsheel的下行即可)

(4)之后就可以用xsheel登录了

 

相关文章:

  • 2021-12-04
  • 2021-12-28
  • 2021-06-19
  • 2021-05-13
  • 2022-01-03
  • 2021-08-22
  • 2021-07-06
猜你喜欢
  • 2021-12-20
  • 2021-05-17
  • 2021-10-19
  • 2021-07-31
  • 2021-07-09
  • 2021-05-28
  • 2022-12-23
相关资源
相似解决方案