I need help to use ssh extension in chrome for ssh to remote server via a jump host.

173 views
Skip to first unread message

Awanish Gupta

unread,
Jan 25, 2021, 2:19:50 AM1/25/21
to chromium-hterm
Please provide me the options that i can use similar to this command in linux.
ssh -o ProxyCommand='ssh -p $port user@jumpserver nc dbserver 22' dbserver

Thanks,
Awanish Gupta

Matthew Blecker

unread,
Jan 25, 2021, 7:55:22 PM1/25/21
to Awanish Gupta, chromium-hterm
Secure Shell can't run an arbitrary ProxyCommand, because that would violate Chrome's sandboxing of Chrome extensions (or of Chrome apps or websites/webapps).

You can connect to jumpserver in one Secure Shell session with a port forward to dbserver:22 (e.g. -L12345:dbserver:22), then use another Secure Shell session to connect via the forwarded port (e.g. connect to localhost:12345).

You could use ssh with ProxyCommand from Crostini, if Crostini is available on your device.

You can connect to jumpserver from Secure Shell and then just run "ssh dbserver" from there.  With this option, if you need port forwarding through dbserver you would have to configure each forwarded port at both the jumpserver and dbserver layers though.

If you have administrative control over jumpserver, there more options you could setup.


--
You received this message because you are subscribed to the Google Groups "chromium-hterm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-hter...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-hterm/a50b4982-eba4-4e96-97b8-443df0453b74n%40chromium.org.
Reply all
Reply to author
Forward
0 new messages