Using SSH Keys with .ssh Folder and Config on Mac

Tiempo de lectura: 2 minutos

Reading time: < 1 minute

Today we are going to learn how to use the .ssh folder to connect to our SSH servers using RSA keys.

The first thing we need to do is create an RSA key so that it generates the directory. Open the console and type:

ssh-keygen

We will be prompted with: Enter file in which to save the key. Press ENTER and do not add a passphrase.

Now we can navigate to the .ssh directory and create the config file inside.

nano .ssh/config

And add an example address:

Host test
HostName 192.168.1.13
User user_1
IdentityFile ~/.ssh/id_rsa

To test the configuration, we will use:

ssh test

Reading time: < 1 minute

Today we are going to learn how to use the .ssh folder to connect to our SSH servers using RSA keys.

The first thing we need to do is create an RSA key so that it generates the directory. Open the console and type:

ssh-keygen

We will be prompted with: Enter file in which to save the key. Press ENTER and do not add a passphrase.

Now we can navigate to the .ssh directory and create the config file inside.

nano .ssh/config

And add an example address:

Host test
HostName 192.168.1.13
User user_1
IdentityFile ~/.ssh/id_rsa

To test the configuration, we will use:

ssh test

Reading time: < 1 minute

Today we are going to learn how to use the .ssh folder to connect to our SSH servers using RSA keys.

The first thing we need to do is create an RSA key so that it generates the directory. Open the console and type:

ssh-keygen

We will be prompted with: Enter file in which to save the key. Press ENTER and do not add a passphrase.

Now we can navigate to the .ssh directory and create the config file inside.

nano .ssh/config

And add an example address:

Host test
HostName 192.168.1.13
User user_1
IdentityFile ~/.ssh/id_rsa

To test the configuration, we will use:

ssh test


(no incluyas el Tiempo de lectura).

Leave a Comment