Access using .pem file

Hi

I configured SSH access using ssh-rsa, and it works fine. However, I’d like to know if it’s possible to create a .pem or .key file for SSH access, similar to how AWS EC2 instances are accessed.

Thanks

I did some research and used the following procedure to create SSH keys:

ssh-keygen -t rsa -b 2048 -f my-key.pem

This command generated two files:
• my-key.pem (private key)
• my-key.pub (public key)

I used my-key.pem for SSH access.

Next, I configured the public key in VyOS using the following command:

generate public-key-command user test path /home/vyos/my-key.pub

I applied the output of the command, and after that, I was able to access the server using my-key.pem as the private key.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.