AI智能
改变未来

Win10 Powershell ssh到WSL

钉钉、微博极速扩容黑科技,点击观看阿里云弹性计算年度发布会!>>>

一、配置WSl1.WSL安装openssh-server# sudo apt-get install openssh-server2.配置sshd# sudo cp /etc/ssh/sshd_config  /etc/ssh/sshd_config.bak# sudo emacs /etc/ssh/sshd_configPort 2233 # 可不改ListenAddress 0.0.0.0PermitRootLogin yesStrictModes noPasswordAuthentication yes3.重启sshd服务# sudo service ssh restart* Restarting OpenBSD Secure Shell server sshd     [ OK ]# ifconfig //拿到wsl的ip地址172.21.199.185二、配置powershell打开powershell# ssh [email protected] -p 2233Or#  ssh [email protected] -p 2233

赞(0) 打赏
未经允许不得转载:爱站程序员基地 » Win10 Powershell ssh到WSL