sshs icon indicating copy to clipboard operation
sshs copied to clipboard

hostname contains invalid characters

Open sabbath88 opened this issue 2 years ago • 10 comments

Hi, Ubuntu 22.04.3 LTS sshs version 3.4.0

Since few weeks I am getting "hostname contains invalid characters" error when trying connect to hostnames that contain spaces in name. It was working before perfectly.

Launching: sshs -c ~/sshs_config

non working example: Host "my Lab" HostName 192.168.1.2 User root Port 22

working example: Host "MyLab" HostName 192.168.1.3 User root Port 22

sabbath88 avatar Jan 14 '24 13:01 sabbath88

Same problem on 3.3.0-1-gdca8a21 and 3.4.0

Hexcah avatar Feb 12 '24 16:02 Hexcah

Hey! That should not be a problem anymore in 4.0.0

quantumsheep avatar Feb 21 '24 21:02 quantumsheep

Hi, I have this exact problem in version 4.5.1, the only thing that's different is that I launch sshs without arguments, Frank

franksl avatar Aug 27 '24 08:08 franksl

Hi @quantumsheep, thx again for a great piece of software. I proudly use it everyday.

Situation happened to me again when I was trying to update to 4.5.1. I was using method with cloning repo and cargo build like; git clone https://github.com/quantumsheep/sshs.git cd src/ssh_config cargo build --release sudo cp sshs /usr/local/bin/sshs

then "hostname contains invalid characters" error appeared again. in another try I just downloaded sshs-linux-amd64 which is working fine.

sabbath88 avatar Oct 07 '24 13:10 sabbath88

Hey! Noted. I will try to troubleshoot the issue when I have some time

quantumsheep avatar Oct 08 '24 08:10 quantumsheep

Same problem. Any news about the fix?

Dowloaded 4.7.2 on ubuntu linux direclty from GitHub. Installed via apt and created a manual ssh config file with

Host "My Host" HostName xx.xx.xx.xx (an internal IP)

Still getting "hostname contains invalid characters"

lucaberti avatar Aug 17 '25 18:08 lucaberti

Hi! So digging a bit, ssh doesn't support spaces in hostname :(

You can test it with ssh "My Host".

quantumsheep avatar Aug 17 '25 19:08 quantumsheep

Actually that is not the issue here, since the "Host" was already between "". The problem is with the hostname, witch in my case is an IP (so non spaces and a legit hostname for ssh). I suspect the problem is elsewere, possibly in the inferface between ssh and sshs.

lucaberti avatar Aug 23 '25 09:08 lucaberti

Hello @quantumsheep, any news. Have you managed to reproduce this problem?

lucaberti avatar Sep 07 '25 22:09 lucaberti

Same error here, would love to see this one fixed! Going crazy with this error... Thanks!

bi0h4z4rd88 avatar Sep 27 '25 20:09 bi0h4z4rd88