In this post, we arrangement pem record to login server(Ubuntu) with pem document without secret phrase on linux worker. We are make pem record which used to get to linux worker. Pem document is a private record which do produce by means of ssh-keygen on linux worker.
Step 1: Generate the Key & RSA
create the keys and RSA will create public and private keys.
$ sudo ssh-keygen -t rsa -b 2048
Step 2: Convert to PEM Key
Now we are creating private to pem key.
$ sudo openssl rsa -in ~/.ssh/id_rsa -outform pem > ~/.ssh/rsa.pem
Step 3: Update the Permission
Need to update the permission on pem.
$ sudo chmod 600 ~/.ssh/rsa.pem
Step 4: Copy Pub Key
Copy your PUB key to target server.
$ sudo ssh-copy-id -i ~/id_rsa.pub root@10.10.10.10
Step 5: Add the Signature
First time you need to enter the password and then you can login using pem file.
$ sudo ssh -i ~/.ssh/rsa.pem root@10.10.10.10
Conclusion
You should now have a ssh pem file configured on your Ubuntu 16.04/18.04 server.
How to create pem file and access linux Server via pem file on Ubuntu