Vannkorn

Full Stack Web Developer

Close

Adding new hosts to SSH Config

Some servers allow me to connect freely by just whitelisting my SSH public key. However, some requires

Ads: Register now via this link to receive $100 credit from Vultr

When there is a new project coming in and I need to connect to the remote server to make changes to files, SSH is the common method.

Some servers allow me to connect freely by just whitelisting my SSH public key. However, some requires me to add in a small configuration to my SSH configuration file.

For example:

Host vannkorn.com
    AddKeysToAgent yes
    UseKeychain yes
    IdentityFile ~/.ssh/id_rsa

If someone has a better idea to fix this or any recommendation, please advice in the comment below.

Leave a Reply

Your email address will not be published. Required fields are marked *