使用场景: 使用windows系统下的vscode远程连接服务器的linux系统,终端提示permission denied, please try again,但是使用cmd是可以远程登录的。
解决办法:
Remote - SSH,服务器端安装了ssh服务的相关依赖sudo apt-get install openssh-server
Connect to Host
Configure SSH Hosts

User这里一定是写自己服务器的名字,不要使用默认名字# Read more about SSH config files: https://linux.die.net/man/5/ssh_config Host 198.8.138.241 HostName 198.8.138.241 User lusx C:\Users\Administrator\.ssh目录下,删除known_hosts文件然后再次远程尝试