Vscode连接存在私钥的远程服务器
编辑配置文件
# Read more about SSH config files: https://linux.die.net/man/5/ssh_config
Host 172.17.x.xxx
HostName 172.17.x.xxx
User xxx
IdentityFile 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
原文地址:https://blog.csdn.net/qq_43742383/article/details/140262691
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!