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

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?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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.