coder / sshcode

Run VS Code on any server over SSH.
MIT License
5.74k stars 216 forks source link

Remote directory argument is not working #179

Open mmiakashs opened 4 years ago

mmiakashs commented 4 years ago

I successfully installed sshcode and it is running perfectly, except the remote directory argument is not working as expected. For example if I run the following it always starts the sshcode from remote server home directory (~/), i.e. sshcode ignores the second remote directory argument. sshcode user@domain "~/projects/sourcegraph"

Did I need to configure anything after installing sshcode?

Merith-TK commented 4 years ago

this is kinda a problem with code-server it prioritizes the most recently opened folder rather than the command line argument, which needs to be fixed. but they only fixed it in the 3.0 builds, which arnt supported on sshcode

mmiakashs commented 4 years ago

Thanks. Is there any way I can change the folder in which sshcode will open by default?

Merith-TK commented 4 years ago

THe only way i found was to go through the code-server data directory for sshcode, and edit it so the last dir open is the one you want, chown it to another user, but allow the current user to read the file