I am trying to follow this guide to get phpMyAdmin installed on Ubuntu 20.04.
The first step is to set up a non-root user, and it's here that I'm stuck. I cannot log in to root@public_server_ip. I am using:
curl http://ipinfo.io/ip
to get my IPv4 public IP.
Then I try (my_public_ip is my server's IP):
sudo ssh -vvv root@my_public_ip
This eventually times out with:
sudo ssh -vvv root@my_public_ip
OpenSSH_8.2p1 Ubuntu-4ubuntu0.5, OpenSSL 1.1.1f 31 Mar 2020
debug2: resolve_canonicalize: hostname my_public_ip is address
debug2: ssh_connect_direct
debug1: Connecting to my_public_ip [my_public_ip] port 22.
debug1: connect to address my_public_ip port 22: Connection timed out
ssh: connect to host my_public_ip port 22: Connection timed out
In trying to find out why this is happening I have tried:
netstat -plant | grep :22
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp6 0 0 :::22 :::* LISTEN -
...
As far as I can see this looks OK. Also:
ps aux | grep sshd
root 11925 0.0 0.0 12188 6828 ? Ss 12:09 0:00 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups
ciara 18194 0.0 0.0 9040 648 pts/0 S+ 13:22 0:00 grep --color=auto sshd
The timeout also occurs with the regular user:
ssh -vvv ciara@my_public_ip
OpenSSH_8.2p1 Ubuntu-4ubuntu0.5, OpenSSL 1.1.1f 31 Mar 2020
...
ssh: connect to host my_public_ip port 22: Connection timed out
I have tried disabling the firewall with:
sudo ufw --force disable
This makes no difference. I've also reset it and re-enabled it to no effect.
I'm not very experienced with this, but I can't find where the issue lies. Could anyone give me any pointers as to where I should look?