I have a remote Ubuntu system to which I login from my local one. Yesterday I mistakenly installed denyhosts just to do a test, on this remote machine, but the machine already had CSF-LFD installed and it seems there became some kind of conflict between them as since then I can't SSH or FTP into it from my permanent ip, although I can SSH or FTP it from other IPs just fine.
What I can do from my permanent IP is surfing in the websites based on this machine's Apache server and even access their DBs via PHPmyadmin or logging into their CMSs from a relevant URL, hence I say I'm partially blocked.
To solve it, I tried from the hosting platform console:
( sudo apt-get purge denyhosts sudo apt-get purge fail2ban sudo apt-get autoremove sudo sh /etc/csf/uninstall.sh sudo apt-get install --reinstall openssh-server -y sudo apt-get install --reinstall iptables -y sudo iptables -F. sudo reboot )
Still, after executing this code block, my ip is partially blocked and can't SSH or FTP into the system - When I SSH tunnel from my local desktop with WSL Ubuntu:
Connection closed by remote host.
- I didn't replace either ftp or SSH ports from 21 or 22 to something else.
- I didn't manually block my IP on any port (but it seems it is blocked anyway).
/var/log/auth.logdoesn't contain any serious errors besides "connection refused".
ps ax | grep ssh:
1379 ? Ss 0:01 /user/sbin/sshd -D 2362 pts/0 S+ 0:00 grep --color=auto ssh
What's left to cause this after the aforementioned actions and given the charts seem fine?