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
$HOME/.ssh/config
.For example: