Host * AddKeysToAgent yes IdentitiesOnly yes AddressFamily inet Host 192.168.1.73 ap1 ##This ap1 needs to be set as a prefix for the user password in hosts Hostname 192.168.1.73 Port 22 User franv IdentityFile ~/.ssh/id_rsa ##Be careful here no ".pub" extension, otherwise doesn't work