wsl2 ssh localhost Permission denied, please try again.
问题描述suroot输入密码之后能够成功的切换用户。sshlocalhost输入上述密码之后,居然出现了问题,如图所示。解决安装ssh$sudoapt-getinstallssh生成使用SSH键值对$ssh-keygen-trsa复制公钥形成id_rsa.pub到authorized_keys文件中$cat~/.ssh/id_rsa.pub>>~/.ssh/authorized_keys提供拥有者