依次运行下面命令进行安装:
sudo dpkg -i openssh-client_1%3a7.6p1-4ubuntu0.6_amd64.deb
sudo dpkg -i ncurses-term_6.1-1ubuntu1.18.04_all.deb
sudo dpkg -i openssh-sftp-server_1%3a7.6p1-4ubuntu0.6_amd64.deb
sudo dpkg -i openssh-server_1%3a7.6p1-4ubuntu0.6_amd64.deb
sudo dpkg -i ssh-import-id_5.7-0ubuntu1.1_all.deb
修改 /etc/ssh/sshd_config文件权限
①进入 /etc/ssh/,
执行命令:cd /etc/ssh/
②并修改sshd_config文件权限,
执行命令:chmod 777 sshd_config
③进入编辑模式
执行命令:vi sshd_config
④找到permitRootLogin
删除permitRootLogin后面的without-password后改为yes
1