Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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
like image 437
MushuLeDragon Avatar asked Sep 13 '25 23:09

MushuLeDragon


1 Answers

Just add Port to your config like:

Host my-remote-connection
    HostName mydomain.name
    User myusername
    Port 2222
like image 131
HaaLeo Avatar answered Sep 17 '25 03:09

HaaLeo