sshcode icon indicating copy to clipboard operation
sshcode copied to clipboard

Remote directory argument is not working

Open mmiakashs opened this issue 4 years ago • 3 comments

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?

mmiakashs avatar May 10 '20 13:05 mmiakashs

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

Merith-TK avatar May 10 '20 18:05 Merith-TK

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

mmiakashs avatar May 11 '20 02:05 mmiakashs

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

Merith-TK avatar May 11 '20 02:05 Merith-TK