Question

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

Posted July 31, 2020 130 views
Security

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

only IP 15.15.15.0 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.

×
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.

Submit an Answer