Trying to connect WordPress droplet with SSH

October 12, 2019 105 views
WordPress

Help will be appreciated.

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

Regards,
KDSys

by Mitchell Anicas
Iptables is the software firewall that is included with most Linux distributions by default. This cheat sheet-style guide provides a quick reference to iptables commands that will create firewall rules 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?

Have another answer? Share your knowledge.