Sublime Text 3 sftp plugin proxy setting

2019-02-28 17: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?

2条回答
smile是对你的礼貌
2楼-- · 2019-02-28 18:12

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.

查看更多
smile是对你的礼貌
3楼-- · 2019-02-28 18:19

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"
]
查看更多
登录 后发表回答