Alex_TD

window10的 Linux 子系统ssh配置
1.更新软件管理器
 sudo apt  update
2.安装ssh  openssh-server
 apt install ssh openssh-server
ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key 3.配置ssh配置文件 vi /etc/ssh/sshd_config 打开找到 PasswordAuthentication yes 密码验证yes PermitRootLogin yes 允许root登录yes StrictModes yes 4.启动服务 service ssh restart or sudo /etc/init.d/ssh restart 5.通过ssh软件登录 ssh root@ip

  

posted on 2020-11-06 20:43  Alex_TD  阅读(369)  评论(0编辑  收藏  举报