Loading

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

posted @ 2020-08-24 20:05  Lust4Life  阅读(345)  评论(0)    收藏  举报