SSH 服务
SSH 服务器的安装:
sudo apt-get install openssh-server
SSH 客户端的安装:
sudo apt-get install openssh-client
远程连接
ssh root@47.11.19.69
检查SSH服务是否已安装
ps -e | grep ssh
看22端口有没有在监听
netstat -anp | grep 0:22
重新启动下ssh服务
service sshd restart
或者
systemctl restart sshd
设置SSH服务为开机启动
systemctl enable sshd
注:若是systemctl disable sshd 则禁止SSH开机启动。