open-remote-ssh icon indicating copy to clipboard operation
open-remote-ssh copied to clipboard

How to execute remote command?

Open Icemole opened this issue 1 year ago • 5 comments

Hi all!

The official Remote - SSH extension has an option that enables the RemoteCommand being respected (see original issue), is the functionality there for this extension already? If not, are there any plans to integrate this functionality? I'd be greatly interested in it.

Icemole avatar Jan 28 '24 18:01 Icemole

RemoteCommand is not supported currently but ProxyCommand is supported, doesn't it cover your use case?

jeanp413 avatar Jan 30 '24 02:01 jeanp413

Sadly, it doesn't... I'm trying to run a singularity image on remote so that I get the native interpreter from there into VSCodium. However, substituting RemoteCommand singularity ... by ProxyCommand ssh <hostname> singularity ... runs into the following error:

[Error  - 15:03:34.747] Error resolving authority
Error: Connection lost before handshake
	at u (/home/user/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.45-universal/out/extension.js:1:370645)
	at /home/user/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.45-universal/out/extension.js:1:154361
	at Duplexify.<anonymous> (/home/user/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.45-universal/out/extension.js:1:155174)
	at Duplexify.emit (node:events:513:28)
	at Duplexify.emit (node:domain:489:12)
	at emitCloseNT (node:internal/streams/destroy:132:10)
	at emitErrorCloseNT (node:internal/streams/destroy:117:3)
	at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

Note: ProxyCommand singularity ... crashes with exactly the same error message, only way sooner.

Icemole avatar Jan 30 '24 15:01 Icemole

In my setup I use ProxyCommand to so an ssh connection with a hop (using SSH key file with password) and can confirm I get a similar error:

[Error  - 09:08:47.486] Error resolving authority
Error: Premature close
	at new NodeError (node:internal/errors:399:5)
	at Socket.onclose (node:internal/streams/end-of-stream:154:30)
	at Socket.emit (node:events:513:28)
	at Socket.emit (node:domain:489:12)
	at Pipe.<anonymous> (node:net:322:12)

ichigomiruku avatar Feb 10 '24 09:02 ichigomiruku

Would it take too much work to implement the RemoteCommand functionality? If I can provide any more assistance I will be glad to do so.

Icemole avatar Mar 05 '24 09:03 Icemole

Same error for me.

madhavpcm avatar Aug 26 '24 03:08 madhavpcm