SSH With Public-Key Authentication

To connect to our server using our public key we do the following in our Linux machine:

First we generate a ssh key with the command ssh-keygen

1

Then we copy our public key to our Linux server with ssh-copy-id -i ~/.ssh/id_rsa.pub a01225953@10.40.53.3

2

And that’s all now we can connect to our server ssh a01225953@10.40.53.3

3

Leave a comment