lilydjwg / pssh

Parallel SSH Tools
Other
282 stars 64 forks source link

As of v2.3.5, pssh converts all SSH host aliases to lowercase, making it unable to connect #138

Closed dv8472 closed 1 year ago

dv8472 commented 1 year ago

Prior to update from 2.3.1 to 2.3.5, I could use SSH host aliases (with uppercase chars in name) stored in my ~/.ssh/config file.

Host            MyServer1
Hostname        1.2.3.4

Host            MyServer2
Hostname        5.6.7.8

and it worked just fine with pssh -i -H "MyServer1 MyServer2" hostname.

As of ver. 2.3.5, it's automatically converting all uppercases to lowercases, making it unable to connect.

[1] 10:58:20 [FAILURE] myserver1 Exited with error code 255
Stderr: ssh: Could not resolve hostname myserver1: Name or service not known
[2] 10:58:20 [FAILURE] myserver2 Exited with error code 255
Stderr: ssh: Could not resolve hostname myserver2: Name or service not known

However, if I change the SSH host alias in the ~/.ssh/config to lowercase too, it works again. But I do not want to convert everything I have to lowercases.