执行 sudo apt install openssh-server 会报一下错误 @H_403_2@
需要我们安装openssh-client,其实系统里面已经有啦openssh-client @H_403_2@
只是版本不对需要安装时带上版本号
- sudo apt install openssh-client=1:6.6p1-2ubuntu1
再执行
- sudo apt install openssh-server
继续配置openssh
- sudo gedit /etc/ssh/sshd_config
将PermitRootLogin without-password注释掉并添加PermitRootLogin yes
- #PermitRootLogin without-password
- PermitRootLogin yes
重启ssh
- /etc/init.d/ssh restart
到此就可以啦