windows上运行Linux子系统

开启服务 https:baijiahao.baidus?id1607159570058814753&wfrspider&forpc 在开启SSHD服务时报错.sshd re-exec requires exe

//开启服务

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回车

 

发布者:admin,转转请注明出处:http://www.yc00.com/web/1738021664a4012564.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信