当前位置: 首页> 汽车> 行情 > Vscode连接存在私钥的远程服务器

Vscode连接存在私钥的远程服务器

时间:2025/7/10 0:34:42来源:https://blog.csdn.net/qq_43742383/article/details/140262691 浏览次数: 0次

编辑配置文件

# Read more about SSH config files: https://linux.die.net/man/5/ssh_configHost 172.17.x.xxxHostName 172.17.x.xxxUser xxxIdentityFile C:\Users\xxx\.ssh\xxx.pem

会出现报错:

Permissions 0644 for 'xxxx' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "xxxx": bad permissions

可以参考:
https://blog.csdn.net/joshua2011/article/details/90208741

远程服务器安装插件

内网安装插件时需要先配置全局代理,将代理写在文件/etc/profile内,格式:

export http_proxy=http://1x.21.xxx.2x:8080/
export https_proxy=http://1x.21.xxx.2x:8080/

然后重启网络,未生效的话重启一下机器

systemctl restart network
关键字:Vscode连接存在私钥的远程服务器

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: