I'm new to the sysadmin/IT side of things, so I apologize if this may seem straightforward. I tried searching, but since SSH is such a broad field I didn't know what keywords or terminology to specifically use.
I'm going to be doing some traveling soon and I need to SSH into my EC2 Ubuntu server. Currently I have a static IP at home and UFW set up to restrict IP access for port 22. As far as the SSH itself goes, I use a key pair to log in.
Is there any way I can somehow get a static IP, or use some kind of VPN and then SSH into my server to still keep port 22 secured? Obviously I'm not the first person to travel while having to SSH into a server so there's got to be a solution.
As I stated, I currently keep port 22 access allowed only to my IP. Would it be too risky to open port 22 to all traffic? I use a key pair for SSH, not a username/password.