Linux-SSH服务器实战服务器实战
查看查看SSH是否安装是否安装
rpm -qa | grep ssh
没有安装操作没有安装操作
yum install openssh-server
启动服务启动服务
systemctl start sshd
开机自启开机自启
systemctl enable sshd
使用使用SSH远程管理远程管理
[root@localhost ~]# ssh root@192.168.219.132 //账户名@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.
root@192.168.219.132's password: //输入密码
Last login: Mon Mar 9 19:00:39 2020 from 192.168.219.1
链接成功查询链接成功查询
作者:This is ah Lin
评论0
最新资源