Linux-SSH服务器实战

查看SSH是否安装
rpm -qa | grep ssh

没有安装操作
yum install openssh-server

启动服务
systemctl start sshd 

开机自启
systemctl enable sshd 

使用SSH远程管理
[root@localhost ~]# ssh [email protected]   //账户名@IP地址
The authenticity of host '192.168.219.132 (192.168.219.132)' can't be established.
ECDSA key fingerprint is SHA256:NMm16LQ5a2mWAzRn+aVdmE/XZOMeo/ZWb54TPWVD/Us.
ECDSA key fingerprint is MD5:74:6a:32:0a:59:86:8d:4f:0f:17:75:f3:8e:cc:90:ed.
Are you sure you want to continue connecting (yes/no)? yes  //yes确定
Warning: Permanently added '192.168.219.132' (ECDSA) to the list of known hosts.
[email protected]'s password:   //输入密码
Last login: Mon Mar  9 19:00:39 2020 from 192.168.219.1

链接成功查询

在这里插入图片描述

发布了12 篇原创文章 · 获赞 92 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/weixin_46299169/article/details/104762076