windows上运行Linux子系统

//开启服务

https://baijiahao.baidu.com/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.com/article/fb48e8be0b4d6d6e622e14a2.html

//开启远程控制ssh

https://jingyan.baidu.com/article/adc81513717df8f723bf739a.html

sudo /etc/init.d/ssh start

//开启密码连接

https://www.linuxidc.com/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回车

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

萌翻天

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值