I'm using an SSH config file with a ProxyCommand to hop through a bastion host to my target host. Specifically, the
ProxyCommand uses a cloud service CLI that takes the hostname / user / port I originally passed, looks them up in a database, and connects me to the host through their bastion. It essentially looks like this:
Host host-* ProxyCommand /bin/the-cli %h %r %p
The problem is that the database of target hostnames is case-sensitive, i.e.
host-XyZ, but SSH always turns the hostname I originally entered (
%h) into a lowercase string. So the end result is something like:
$ ssh host-XyZ Bastion service: there are no targets with name 'xyz'
Can I prevent SSH from doing this? I don't see any documentation of where the remote hostname is being converted to lowercase.