Will I be able to access my server if i limit ssh IP, if my IP changes?

Posted July 31, 2020 344 views

Dear DigitalOcean, im wandering, if i do:
sudo ufw allow from to any port 22

only IP will be able to connect to ssh, what if my ip changes? will i be able to access my droplet?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

simply, no you want be able. if you want another layer of protection use key and/or 2fa auth. DO has exellent tutorials for that.