Trying to connect WordPress droplet with SSH

Posted October 12, 2019 1.5k views

Help will be appreciated.

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
2 answers

Hi @DigitalSplendid,

You can try and allow your IP address in your droplet’s firewall.

Please try with the following lines

iptables -A INPUT -p tcp -s XXX.XXX.XXX.XXX -j ACCEPT
iptables -A OUTPUT -p tcp -d  XXX.XXX.XXX.XXX -j ACCEPT

You can replace XXX.XXX.XXX.XXX with your own personal IP address. To get your own IP address, click here

As soon as you’ve added your IP, save the iptables configuration

iptables save

If you wish to read more on Iptables and how to use them, you can check this DO article - Iptables Essentials


by Mitchell Anicas
Iptables is a software firewall for Linux distributions. This cheat sheet-style guide provides a quick reference to iptables commands that will create firewall rules that are useful in common, everyday scenarios. This includes iptables examples of allowing and blocking various services by port, network interface, and source IP address.

Having not much exposure to working in consoles, I am not sure in which console I need to put commands.

  1. Is it the console that opens from PuTTY (screenshot 2)
  2. Is it the console that opens after clicking Launch Console (screenshot 1)

Or are they just alternative way to get the same work done?