//开启服务
https://baijiahao.baidu/s?id=1607159570058814753&wfr=spider&for=pc
//在开启SSHD服务时报错.sshd re-exec requires execution with an absolute path
#ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
#ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
输入密码生成一次
不输入密码生成一次
如果上述两个文件存在,仍然出现这个错误,那么试试 chmod 600 上述两个文件。之后应该可以解决。
//ubuntu获取root权限
https://jingyan.baidu/article/fb48e8be0b4d6d6e622e14a2.html
//开启远程控制ssh
https://jingyan.baidu/article/adc81513717df8f723bf739a.html
sudo /etc/init.d/ssh start
//开启密码连接
https://www.linuxidc/Linux/2013-10/90802.htm
打开/etc/ssh/ssh_config文件,设置
PasswordAuthentication yes
打开/etc/ssh/sshd_config文件,设置
Port 22
ListenAddress 10.10.28.225
//win进入ubantu子系统模式
以管理员身份运行终端,输入bash或者ubuntu回车