编辑配置文件
# 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