SSH基础操作
修改Linux系统主机名
[root@kelong-1 ~]# hostnamectl set-hostname ssh-server
ssh基本格式
ssh username@address
登录之前必须确认address可达
如果不指定username,默认会以当前shell的用户连接远端服务器
如果服务端没有当前shell的用户,是不可能连接成功的
[root@ssh-client ~]# ssh root@192.168.190.128
The authenticity of host '192.168.190.128 (192.168.190.128)' can't be established.
ECDSA key fingerprint is SHA256:MmODYVPkw0MaR+fcu/H5Q5+tYZzH+H+XIFfFbPWHSD0.
Are you sure you want to continue connecting (yes/no)? yes