I connect to many servers daily.
my ssh config default username is "admin"
but servers comes from different environnements and username can changes. sometimes it will be "ec2-user" or "exploitation" or "something-else" …
Is there a way SSH remember that last connection to 192.0.2.1/server.example.org was with "ec2-user" ?
So I don’t have to specify "-l ec2-user" next time.
You can set these up yourself in your configuration file
Host *.amazonaws.com User ec2-user Host 192.0.2.1 User centos
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.