Hi,
I've a physical home server runs on Ubuntu 20.04.4 LTS. Everything works as expected till I change my ISP. After that I can't connect to my server from WAN. In LAN there is no problem.
Code:
ps -A | grep sshd
1804803 ? 00:00:00 sshd
sudo ss -lnp | grep sshd
tcp LISTEN 0 128
0.0.0.0:22 0.0.0.0:* users:(("sshd",pid=1790621,fd=3))
tcp LISTEN 0 128
[::]:22 [::]:* users:(("sshd",pid=1790621,fd=4))
On modem/router port 22 forwarded to the server
On LAN and WAN same client machine used
----------------------On Server---------------------
Code:
ssh user@localhost
Last login: Fri Mar 4 17:42:10 2022 from 192.168.1.33
Welcome to fish, the friendly interactive shell
Type `help` for instructions on how to use fish
user@server ~>
---
ssh user@127.0.0.1
Last login: Fri Mar 4 19:49:19 2022 from 127.0.0.1
Welcome to fish, the friendly interactive shell
Type `help` for instructions on how to use fish
user@server ~>
---
ssh user@192.168.1.25 #(server LAN IP)
Last login: Fri Mar 4 19:50:18 2022 from 127.0.0.1
Welcome to fish, the friendly interactive shell
Type `help` for instructions on how to use fish
user@server ~>
---
ssh user@domain.ltd #(sever domain name)
Last login: Fri Mar 4 19:50:51 2022 from 192.168.1.25
Welcome to fish, the friendly interactive shell
Type `help` for instructions on how to use fish
user@server ~>
---------------------On LAN Client-------------------
Code:
ssh user@192.168.1.25
Last login: Fri Mar 4 19:51:16 2022 from 192.168.1.25
Welcome to fish, the friendly interactive shell
Type `help` for instructions on how to use fish
user@client_on_LAN ~>
---
ssh user@domain.ltd
Last login: Fri Mar 4 19:59:53 2022 from 192.168.1.33
Welcome to fish, the friendly interactive shell
Type `help` for instructions on how to use fish
user@client_on_LAN ~>
---------------------On WAN Client-------------------
Code:
ssh user@domain.ltd
ssh: connect to host domain.ltd port 22: Connection timed out
user@client_on_WAN ~ [255]>
---
ssh user@domain.ltd -vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
OpenSSH_8.2p1 Ubuntu-4ubuntu0.4, OpenSSL 1.1.1f 31 Mar 2020
debug1: Reading configuration data /home/user/.ssh/config
debug1: /home/user/.ssh/config line 2: Applying options for *
debug3: kex names ok: [curve25519-sha256,curve25519-sha256@libssh.org,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha256]
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolving "domain.ltd" port 22
debug2: ssh_connect_direct
debug1: Connecting to domain.ltd [xxx.xxx.xxx.xxx] port 22.
debug1: connect to address xxx.xxx.xxx.xxx port 22: Connection timed out
ssh: connect to host domain.ltd port 22: Connection timed out
user@client_on_WAN ~ [255]>
-----------------------------------------------------------------------------
What is my problem? How can I solve this weird problem?
Thanks in advance.
Bookmarks