2

I am using vs code on Windows 11 and have remote tunnel connection to vscode server that works fine but i want to change the path I am placed in once I connect to the remote code. The remote server is Ubuntu 24 on a PI 5 machine.

Is there a way to change the remote path I land in?

Thanks

1 Answer 1

1

In VSCode, I think you can overwrite your config file if you use Remote-SSH extension:

Go to -> Remote-SSH: Open SSH Configuration File...

And then you can change with the new remote path

{
    "host": "my-remote-server-PI-5",
    "hostName": "remote.server.com",
    "user": "username",
    "identityFile": "~/.ssh/id_rsa",
    "remotePath": "/path/to/your/default/directory"
}
Sign up to request clarification or add additional context in comments.

1 Comment

I dont see a path there. These come up as my general .ssh config files for the machine. Seems like a settings file has to be around somewhere storing these.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.