providing multiple options in an ssh link

350 views
Skip to first unread message

Dustin S

unread,
Aug 18, 2023, 4:52:35 AM8/18/23
to chromium-hterm
I have some old network devices that I need to connect to with the following options:

-oKexAlgorithms=+diffie-hellman-group1-sha1
-oHostKeyAlgorithms=+ssh-rsa
-c aes256-cbc
(I would like to get rid of these devices or upgrade them, but all of that is beyond my control at this moment, so I have to do it this way)

I can supply these arguments manually in the connection page of the extension, but I would like to know if it's possible to supply these 3 arguments to the extension in the url.

This example doesn't actually work, but it's an example of what I'm trying to get at:
ssh://user;KexAlgorithms=+diffie-hellman-group1-sha1;HostKeyAlgorithms=+ssh-rsa;Cipher=aes25...@192.168.1.10:22


Mike Frysinger

unread,
Aug 18, 2023, 9:32:55 AM8/18/23
to Dustin S, chromium-hterm
please see the URI docs for what's permitted & syntax:
-mike

--
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/dc7addba-af3a-4c21-8167-71e871ce29cen%40chromium.org.

Dustin S

unread,
Aug 18, 2023, 9:44:24 AM8/18/23
to chromium-hterm, vap...@google.com, chromium-hterm, Dustin S
Thanks, I was looking at that documentation when I formed my example url, but it looks like I can only submit 1 argument at a time  ssh://user[;option=value]@host[:port] 

However on the connections page I can enter several so I was curious if I was forming my url incorrectly.  Please forgive my ignorance if it's obvious how to submit multiple arguments in the url, but it's not clear to me from the documentation.
I've tried the following different combinations for forming the url, but none of them worked:

Using Commas to Separate Options:
ssh://user;KexAlgorithms=+diffie-hellman-group1-sha1,HostKeyAlgorithms=+ssh-rsa,Cipher=aes25...@192.168.1.10:22

Using Ampersands to Separate Options:
ssh://user;KexAlgorithms=+diffie-hellman-group1-sha1&HostKeyAlgorithms=+ssh-rsa&Cipher=aes25...@192.168.1.10:22

Including the -o Prefix for Options:
ssh://user;KexAlgorithms=+diffie-hellman-group1-sha1&HostKeyAlgorithms=+ssh-rsa&Cipher=aes25...@192.168.1.10:22


Using URL Encoding for Special Characters:
ssh://user;KexAlgorithms=%2Bdiffie-hellman-group1-sha1;HostKeyAlgorithms=%2Bssh-rsa;Cipher=aes25...@192.168.1.10:22

Mike Frysinger

unread,
Aug 18, 2023, 9:47:31 AM8/18/23
to Dustin S, chromium-hterm
the URI only accepts ssh command line options.  what you're specifying are not command line options, they're ssh_config options.

the documentation at the very top in the first paragraph says:
ssh://user[;option=value]@host[:port][@proxyhost[:proxyport]]
Multiple option=value pairs are supported as long as they are delimited by semi-colons.

that seems pretty clear to me, although i wrote the docs.
-mike
Reply all
Reply to author
Forward
0 new messages