ubuntu1604安装ssh
需要下载的包
libwrap0_7.6.q-25_amd64.deb*
openssh-client_7.2p2-4_amd64.deb*
openssh-server_7.2p2-4_amd64.deb*
openssh-sftp-server_7.2p2-4_amd64.deb*
ssh_7.2p2-4_all.deb*
执行
sudo dpkg -i *
启动
sudo systemctl start ssh
设置root可以远程登录
# 设置root 密码
sudo passwd root
vim /etc/ssh/sshd_config
PermitRootLogin yes
PasswordAuthentication yes
#####################################
sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config
### 重启服务
systemctl restart ssh

浙公网安备 33010602011771号