Sublime Text 3 sftp plugin proxy setting

家住魔仙堡 提交于 2019-12-02 08:16:54

问题


I've installed sftp plugin for Sublime Text 3.

Is it possible to configure sftp with proxy?

I am looking for any proxy settings.

Does anyone know about this?


回答1:


Use ProxyCommand inside sftp_flags.

Something like this worked for me:

// Destination server info
"host": "dest.example.com",
"user": "foo",

// Proxy server info
"sftp_flags": [
    "-o",
    "ProxyCommand ssh foo@proxy.example.com -i ~/.ssh/bar.pem -W %h:%p"
]



回答2:


Try to add this in your "Package Control.sublime-settings":

"http_proxy": "proxy.my.net:8080", "https_proxy": "proxy.my.net:8080",

If it didn't work, try to use following steps:

  1. open your Internet Explorer
  2. tools →internet options→ advanced tag→ Security → Cancel "Check for Server Certificate revocation" this checkbox
  3. Restart your Sublime Text and it work!

Hope it can help you.



来源:https://stackoverflow.com/questions/25568369/sublime-text-3-sftp-plugin-proxy-setting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!