root@dev:shiyanlou_project# sudo apt-get install openssh-server root@dev:shiyanlou_project# /etc/init.d/ssh status root@dev:shiyanlou_project# netstat -anptu | grep sshd
开启root远程登录功能
sudo vim /etc/ssh/sshd_config Port 22 # 去掉注释 #PermitRootLogin prohibit-password PermitRootLogin yes # 把上面的换成yes
重启sshd服务
root@dev:shiyanlou_project# service sshd restart
# 类似pip安装 sudo apt-get install XXX sudo apt-get install -y XXX sudo apt-get remove XXX