Can one connect to a machine with a hyphen in the hostname

25 views
Skip to first unread message

Neil Hendin

unread,
Aug 15, 2025, 5:35:45 PMAug 15
to chromium-hterm
Hi all, I am having trouble connecting to a particular machine that has a hyphen in the hostname. The connection works from a CrosVM instance on the same Chromebook, so I think it's a SecureShell issue rather than an SSH issue per se. 

Some names edited for privacy

I have a machine called projectname-lab.internal.domain.com

when I try to ssh using the extension, I get:
Welcome to Secure Shell version 0.68
...removed for brevity....
Looking up relay server using: ssh-relay.corp.company.com:443
Found relay server: https://sup-ssh-relay.corp.company.com:443/
Checking SSH certificate freshness... ~19 hours until expiration
Loading wasm program... «««This is in beta -- see https://issuetracker.google.com/40220462 for KIs»»» done.
Connecting to nhe...@project-lab.internal.domain.com...
project-lab.internal.domain.com: unrecognized option: -
                                                     usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface]
                        [-b bind_address] [-c cipher_spec] [-D [bind_address:]port]
                                                                                              [-E log_file] [-e escape_char] [-F configfile] [-I pkcs11]
                                                                  [-i identity_file] [-J [user@]host[:port]] [-L address]
                                   [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
             [-Q query_option] [-R address] [-S ctl_path] [-W host:port]
                                                                                   [-w local_tun[:remote_tun]] destination [command [argument ...]]

The line highlighted in red makes me think the hyphen is being interpreted incorrectly. 
I did try the usual escape options of \- or quoting the hostname, but neither worked.

Thanks!

--Neil.

Mike Frysinger

unread,
Aug 15, 2025, 5:40:29 PMAug 15
to Neil Hendin, chromium-hterm
hyphens in hostnames work just fine.  i just tested over here with hy-phen-test.domain.org and had no issues.

double check your ssh config settings.
-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 visit https://groups.google.com/a/chromium.org/d/msgid/chromium-hterm/7c8f1ce9-85da-4e16-bb04-06c020b265e6n%40chromium.org.

Neil Hendin

unread,
Aug 15, 2025, 5:45:54 PMAug 15
to Mike Frysinger, chromium-hterm
Hmm thanks Mike!

Is there any particular setting I should look for in the SecureShell menu?

No settings are obviously set weird here, in fact they are blank. 
image.png
Neil Hendin | Hardware Engineering | nhe...@google.com | (650) 248-8195

Mike Frysinger

unread,
Aug 15, 2025, 5:47:58 PMAug 15
to Neil Hendin, chromium-hterm
look at the connection manager for the per-connection settings.  it has a per-host SSH command line section.
-mike

Neil Hendin

unread,
Aug 15, 2025, 5:58:43 PMAug 15
to Mike Frysinger, chromium-hterm
Nothing odd here? I don't think?
image.png
Neil Hendin | Hardware Engineering | nhe...@google.com | (650) 248-8195

Mike Frysinger

unread,
Aug 15, 2025, 6:06:16 PMAug 15
to Neil Hendin, chromium-hterm
your SSH arguments are incorrect.  you're attempting to run `ssh --config=google ...` which is why it's showing you errors.

you already set those as relay options above.
-mike

Neil Hendin

unread,
Aug 16, 2025, 1:37:13 AMAug 16
to chromium-hterm, vap...@chromium.org, chromium-hterm, Neil Hendin
D'oh yeah. Thanks Mike.  PEBKAC.  

Have a good one.

--Neil.

Reply all
Reply to author
Forward
0 new messages