How do I use other port to connect with Remote SSH VS Code extention

心已入冬 提交于 2019-12-01 06:42:06

问题


I discover Visual Studio Code Remote Development Extension Pack. I wanted to try it, but my remote is on a 2222 port.

I can correctly connect with Putty and my port 2222, same on my Linux laptop with ssh command.

What is the correct config to use Code Remote via SSH with other port ?

Thanks

Host my-remote-connection
    HostName mydomain.name
    User myusername

回答1:


Just add Port to your config like:

Host my-remote-connection
    HostName mydomain.name
    User myusername
    Port 2222


来源:https://stackoverflow.com/questions/56596310/how-do-i-use-other-port-to-connect-with-remote-ssh-vs-code-extention

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