VSCode SSH相关

VSCode SSH相关

  • Config文件
  • 删除SSH接受过的公钥

Config文件

Host remotehost.yourcompany.com
    User yourname
    HostName another-host-fqdn-or-ip-goes-here
    IdentityFile ~/.ssh/id_rsa-remote-ssh

删除SSH接受过的公钥

当你链接过一个IP,而那个IP重做了系统,或者更改了公钥,就需要进行以下步骤。
打开Terminal,找到ssh中的known_hosts文件,把里面的内容删除

cd /
cd users
cd username
cd .ssh
vim known_hosts

使用vim删除known_hosts中的内容,保存重启VSCode。

你可能感兴趣的:(VSCode,Linux,SSH)