Search code examples
amazon-ec2sshremote-accessrhel

I want a support company to do remote administration using SSH on our AWS EC2 instance (RHEL) using 2 factor authentication. How do i achieve this?


The supplier is based at different site and needs to connect over the internet. So the connection needs to be secure.

We have a Web app firewall (WAF) i know we need to open port 22.

I have looked at AWS workspace however this is for windows.

What is the best way to connect to a Red hat linux box.

The endpoint used by the supplier is their own and not issued by my company.


Solution

  • Using Google's PAM, you should be able to invoke 2-factor authentication for ssh.

    Following blog gives a nice step by step explanation on how to install and configure Google's PAM on linux machine.