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

相关推荐

  1. Vscode连接存在远程服务器

    2024-07-12 10:26:02       25 阅读
  2. vscode连接远程服务器失败

    2024-07-12 10:26:02       54 阅读
  3. vscode使用ssh连接远程服务器

    2024-07-12 10:26:02       15 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-12 10:26:02       67 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-12 10:26:02       72 阅读
  3. 在Django里面运行非项目文件

    2024-07-12 10:26:02       58 阅读
  4. Python语言-面向对象

    2024-07-12 10:26:02       69 阅读

热门阅读

  1. leetcode热题100.单词拆分(动态规划进阶)

    2024-07-12 10:26:02       27 阅读
  2. ubuntu文件夹加密

    2024-07-12 10:26:02       23 阅读
  3. OpenCV在构建时确实没有启用CUDA支持

    2024-07-12 10:26:02       20 阅读
  4. 编程题-函数模板

    2024-07-12 10:26:02       22 阅读
  5. Opencv中的直方图均衡

    2024-07-12 10:26:02       20 阅读
  6. cannot connect to X server

    2024-07-12 10:26:02       22 阅读
  7. Perl 语言进阶学习

    2024-07-12 10:26:02       28 阅读