I'm trying to connect to a remote server through SSH, but I want to make an alias of the server name, and connect using a username different from my default one
Basically, I must enter the command :
ssh remoteUsername@host
But I want to access it using
ssh customHostname
I appended this to my ~/.ssh/.config
file, but it doesn't work :
Host customHostname
HostName host
User remoteUsername
IdentityFile ~/.ssh/id_rsa
I've checked that the usernames are the same, and i tried rebooting the PC, but it still doesn't work
Any ideas why ?