RHEL7-配置ssh服务 使用xshell远程连接到linux-centos7

Linux配置ssh服务

1.检查是否安装了ssh

[root@localhost Desktop]# rpm -qa | grep ssh

下图为已安装:

如果没安装则用   yum install openssh*  命令安装

2.开启ssh

[root@localhost Desktop]# systemctl start sshd    //开启ssh服务
[root@localhost Desktop]# systemctl enable sshd   //将ssh服务设置为开机自启

XShell远程连接到Linux

1.新建会话,在【主机】一栏中输入Linux的IP地址

RHEL7-配置ssh服务 使用xshell远程连接到linux-centos7_第1张图片

2.连接会话,输入要登录到的用户和密码

RHEL7-配置ssh服务 使用xshell远程连接到linux-centos7_第2张图片

RHEL7-配置ssh服务 使用xshell远程连接到linux-centos7_第3张图片

 3.完成

RHEL7-配置ssh服务 使用xshell远程连接到linux-centos7_第4张图片

 

你可能感兴趣的:(Linux)