By midnight1769
Hi,how i can deny all IP to connect at putty except my ip?
Thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
You can’t deny all IP SSH connections to your droplet at your workstation at Putty. Basically you will deny all public IP SSH connections at your droplet except your IP address. <br>
If your droplet has UFW firewall on it you could try <br>------------------------------------------------------------ <br>sudo ufw allow from my.home.ip.address <br>sudo ufw enable <br>----------------------------------------------------------- <br>This would allow all traffic from home computer. Did this when building and testing my droplets. <br> <br>Very specific rule would be <br>sudo ufw allow from my.home.ip.address to any port 22 proto tcp <br> <br> <br>Note: If you changed you default ssh port adjust as needed. <br> <br> <br> <br>You could then expand on it as needed. Opening any required ports to world later. 80, 443 etc <br> <br> <br> <br>
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.