The ssh
command has included bash completion in most systems, for example you can complete common host names and on some systems even hosts previously connected to from the known_hosts
file, but this file do not contain useful hostnames since many years due to security reasons.