open-remote-ssh: Installing the server fails

This is somewhat decoupled from https://github.com/jeanp413/open-remote-ssh/issues/16 and from https://github.com/jeanp413/open-remote-ssh/pull/17 which aims to close the former.

The error I’m getting when trying to install the server on the remote machine behind the 2FA jump host is:

[Info  - 06:07:09.675] Resolving ssh remote authority 'ssh-remote+REMOVE' (attemp #1)
[Trace  - 06:07:09.686] Identity keys:
/home/XXX/.ssh/id_rsa ssh-rsa SHA256:YYY=
[Trace  - 06:07:09.688] Identity keys:
/home/XXX/.ssh/id_rsa ssh-rsa SHA256:YYY=
[Info  - 06:07:09.718] Trying no-auth authentication
[Info  - 06:07:09.726] Trying publickey authentication: /home/XXX/.ssh/id_rsa ssh-rsa SHA256:YYY=
[Info  - 06:07:09.742] Trying keyboard-interactive authentication
[Info  - 06:07:12.297] Trying no-auth authentication
[Info  - 06:07:12.353] Trying publickey authentication: /home/XXX/.ssh/id_rsa ssh-rsa SHA256:YYY=
[Trace  - 06:07:12.419] Server install command:

###skipped to save space

[Trace  - 06:07:17.820] Server install command stderr:
ps: bad -o argument 'command', supported arguments: user,group,comm,args,pid,ppid,pgid,etime,nice,rgroup,ruser,time,tty,vsz,sid,stat,rss

[Trace  - 06:07:17.821] Server install command stdout:
Error server did not start sucessfully
1e676c7df18a6c2a568a1284: start
exitCode==1==
listeningOn====
connectionToken==822c5ba2-3af4-4c3c-ac96-6bc604bdf215==
logFile==/home/YYY/.vscodium-server/.cea9d1a4b17966719d8c5f3cdd914480f7cec47c.log==
osReleaseId==alpine==
arch==x86_64==
platform==Linux==
tmpDir==/tmp==
1e676c7df18a6c2a568a1284: end

[Error  - 06:07:17.821] Error resolving authority
Error: Couldn't install vscode server on remote server, install script returned non-zero exit status
	at t.installCodeServer (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.15/out/extension.js:1:405397)
	at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
	at async /home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.15/out/extension.js:1:375641
[Info  - 06:07:28.856] Resolving ssh remote authority 'ssh-remote+REMOTE' (attemp #2)
[Trace  - 06:07:28.860] Identity keys:
/home/XXX/.ssh/id_rsa ssh-rsa SHA256:YYY=
[Trace  - 06:07:28.862] Identity keys:
/home/XXX/.ssh/id_rsa ssh-rsa SHA256:G5Xju3fAbNvv5y0pxtjEuAYfHWXpE9HdjnUlasj9eDA=
[Info  - 06:07:28.882] Trying no-auth authentication
[Info  - 06:07:28.889] Trying publickey authentication: /home/XXX/.ssh/id_rsa ssh-rsa SHA256:YYY=
[Info  - 06:07:28.906] Trying keyboard-interactive authentication
[Error  - 06:08:58.863] Error resolving authority
Error: Timed out while waiting for handshake
	at Timeout.<anonymous> (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.15/out/extension.js:1:143942)
	at listOnTimeout (node:internal/timers:559:17)
	at process.processTimers (node:internal/timers:502:7)
[Info  - 06:08:58.907] Resolving ssh remote authority 'ssh-remote+REMOTE' (attemp #3)
[Trace  - 06:08:58.909] Identity keys:
/home/XXX/.ssh/id_rsa ssh-rsa SHA256:YYY=
[Trace  - 06:08:58.910] Identity keys:
/home/XXX/.ssh/id_rsa ssh-rsa SHA256:YYY=
[Info  - 06:08:58.927] Trying no-auth authentication
[Info  - 06:08:58.935] Trying publickey authentication: /home/XXX/.ssh/id_rsa ssh-rsa SHA256:YYY=
[Info  - 06:08:58.952] Trying keyboard-interactive authentication
[Error  - 06:10:28.911] Error resolving authority
Error: Timed out while waiting for handshake
	at Timeout.<anonymous> (/home/XXX/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.15/out/extension.js:1:143942)
	at listOnTimeout (node:internal/timers:559:17)
	at process.processTimers (node:internal/timers:502:7)
[Info  - 06:10:28.943] Resolving ssh remote authority 'ssh-remote+RMOTE' (attemp #4)
[Trace  - 06:10:28.946] Identity keys:
/home/XXX/.ssh/id_rsa ssh-rsa SHA256:YYY=
[Trace  - 06:10:28.947] Identity keys:
/home/XXX/.ssh/id_rsa ssh-rsa SHA256:YYY=
[Info  - 06:10:28.966] Trying no-auth authentication
[Info  - 06:10:28.973] Trying publickey authentication: /home/XXX/.ssh/id_rsa ssh-rsa SHA256:YYY=
[Info  - 06:10:28.988] Trying keyboard-interactive authentication

On the remote machine the content of the .vscodium-server is:

$ ls -a .vscodium-server/
.   .cea9d1a4b17966719d8c5f3cdd914480f7cec47c.log    .cea9d1a4b17966719d8c5f3cdd914480f7cec47c.token
..  .cea9d1a4b17966719d8c5f3cdd914480f7cec47c.pid    bin
$ ls .vscodium-server/bin/
cea9d1a4b17966719d8c5f3cdd914480f7cec47c
$ ls .vscodium-server/bin/cea9d1a4b17966719d8c5f3cdd914480f7cec47c/
bin           extensions    node          node_modules  out           package.json  product.json  server.sh

Initially I thought that a firewall rule might prevent the download, but:

$ ping -c 3 www.github.com
PING www.github.com (140.82.121.3): 56 data bytes
64 bytes from 140.82.121.3: seq=0 ttl=42 time=9.392 ms
64 bytes from 140.82.121.3: seq=1 ttl=42 time=9.377 ms
64 bytes from 140.82.121.3: seq=2 ttl=42 time=9.444 ms

--- www.github.com ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 9.377/9.404/9.444 ms

Maybe some form of manual install instructions or a local download and push to remote via rsync or similar could solve this.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 19 (18 by maintainers)

Commits related to this issue

Most upvoted comments

Should I enable the option again?

Yeah, better to have it enabled.