sshcode icon indicating copy to clipboard operation
sshcode copied to clipboard

"cd: tmp: No such file or directory" when start sshcode

Open daiyk opened this issue 6 years ago • 8 comments

Capture I try to start sshcode under windows to connect server in Ubuntu, then when it install code-server I got the error message. I have checked server, /tmp and /tmp/code-server are there: Capture1

I think it maybe the default login directory is /home/user? does someone know how to solve it or skip the step?

daiyk avatar Apr 23 '19 09:04 daiyk

Are you running under WSL on windows? sshcode doesn't support windows natively

coadler avatar Apr 23 '19 15:04 coadler

Are you running under WSL on windows? sshcode doesn't support windows natively

No, I run sshcode in build-in cmd, but the error is wired since it seems to have nothing to do with windows, and I think the error occurs during bash operations on server which is indeed linux......

daiyk avatar Apr 23 '19 15:04 daiyk

Have the same error here, also on Windows. The command line is git-bash.

I think go is using windows path, which interprets slash as an backslash, but also over ssh so the Ubuntu reads it as escape character.

Naruto0 avatar Apr 23 '19 16:04 Naruto0

Have the same error here, also on Windows. The command line is git-bash.

I think go is using windows path, which interprets slash as an backslash, but also over ssh so the Ubuntu reads it as escape character.

I suspect that, the first 4 commands in fig that contains "slash" runs without problem on my server (it creates and downloads code-server). I don't familiar with go, but I think if someone change the call of 'cd tmp' to 'cd /tmp', it might work.

daiyk avatar Apr 23 '19 18:04 daiyk

/tmp is not a dir in windows. I believe that tmp for apps in windows is within %APPDATA%. I am pretty sure that windows support is eventually coming.

teddy-codes avatar May 07 '19 20:05 teddy-codes

I'm thinking it's probably an issue caused by the windows SSH command interpreting the bash script incorrectly since that script should be running on the remote host

coadler avatar May 07 '19 20:05 coadler

Could potentially be, I am not too familiar with windows.

teddy-codes avatar May 07 '19 21:05 teddy-codes

/tmp is not a dir in windows. I believe that tmp for apps in windows is within %APPDATA%. I am pretty sure that windows support is eventually coming.

Actually, it succeed to execute that "wget" command to download code-server to /tmp in remote server, so I think the commands are run inside remote bash.

daiyk avatar May 07 '19 21:05 daiyk