Can't connect with SSH to Ubuntu server (20.04) on raspberry pi 4

Sleekequation56

I need some help regarding my private Ubuntu server. I recently bought a Raspberry Pi 4B. I decided that it was best to turn it into a server with the latest version of Ubuntu server.

I haven't attached a keyboard, mouse or monitor to the Pi as i was planning to only get access to the server with SSH. Now, I can SSH into my Pi when I'm on the same network, but for some reason I don't get access when I'm on a different network. Every time i try to connect from a different network it get the Connection timed out error. If I ping the IP address I get really fast response time, that's why this doesn't make sense to me

I checked the status of SSH with ~$ systemctl status ssh and it does say that SSH is active and running.

I found my IP address with ~$ curl ipv4.icanhazip.com. I checked the online devices in the dashboard of my router and it does say that it's connected.

OpenSSH server is installed and running. I checked and the firewall is not active.

I hope someone can help me out.

Kind regards,

Sleek

user535733

By logging in successfully on your LAN, you have conclusively demonstrated that your Pi+Ubuntu server is configured properly.

All of the devices on your network share a single public IP address -- the router's IP address.

When you try to ssh into your network from outside, those packets reach the router first. Set up port forwarding on your router, so the router knows that the ssh connections should be sent (forwarded) to the Pi.

It's a router setting that has nothing to do with the Pi or with Ubuntu, nor with the Ubunbtu Server's firewall.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Connect raspberry pi 4 with ubuntu server to wifi

From Dev

Can you install Ubuntu on the Raspberry Pi 4

From Dev

Direct remote access (ssh) with Raspberry Pi running Ubuntu server 20.04.1

From Dev

Connect to Raspberry Pi 4 with Ubuntu Core 18 via serial cable

From Dev

Can't connect via LuCI or SSH from WAN side network to Raspberry Pi 1B running OpenWRT 14.07

From Dev

Problem with wireless networking for ubuntu server on a Raspberry pi 4

From Dev

Setup ubuntu server on Raspberry Pi 4 without keyboard

From Dev

wlan0 does not appear in Ubuntu server and raspberry pi 4

From Dev

Cannot connect to Raspberry Pi via SSH

From Dev

Can a Raspberry Pi run Ubuntu?

From Dev

Can a Raspberry Pi run Ubuntu?

From Dev

Ubuntu Server ARM or Ubuntu Server Raspberry Pi?

From Dev

Can't install any applications on Raspberry Pi 4

From Dev

Ubuntu Core on Raspberry Pi ssh failed

From Dev

Connect to rails server remotely from raspberry pi

From Dev

XRDP from Windows 10 to Ubuntu Mate 20 (Raspberry PI 4) - Error: Could not acquire name on session bus

From Dev

Can't view Ubuntu Server (VM) in browser, I can connect with SSH

From Dev

Raspberry Pi won't connect to VPN

From Dev

Ubuntu Server with Raspberry Pi Motion Camera

From Dev

Ubuntu Server with Raspberry Pi Motion Camera

From Dev

Redistribute modified Ubuntu Server for Raspberry Pi

From Dev

Testing bcache with raspberry pi 4 on ubuntu

From Dev

KVM Bridge on Ubuntu 20.04 on Raspberry Pi 4

From Dev

Ubuntu Server 16.04.3 Can't Connect to Internet

From Dev

Can't connect to wireless network on Ubuntu Server

From Dev

Can I use Ubuntu One on the Raspberry Pi?

From Dev

Connect to Raspberry Pi through SSH without Port Forwarding

From Dev

SSH fails to connect from Raspberry Pi to Mac laptop

From Dev

How to remote SSH connect to my Raspberry Pi with static local IP?

Related Related

  1. 1

    Connect raspberry pi 4 with ubuntu server to wifi

  2. 2

    Can you install Ubuntu on the Raspberry Pi 4

  3. 3

    Direct remote access (ssh) with Raspberry Pi running Ubuntu server 20.04.1

  4. 4

    Connect to Raspberry Pi 4 with Ubuntu Core 18 via serial cable

  5. 5

    Can't connect via LuCI or SSH from WAN side network to Raspberry Pi 1B running OpenWRT 14.07

  6. 6

    Problem with wireless networking for ubuntu server on a Raspberry pi 4

  7. 7

    Setup ubuntu server on Raspberry Pi 4 without keyboard

  8. 8

    wlan0 does not appear in Ubuntu server and raspberry pi 4

  9. 9

    Cannot connect to Raspberry Pi via SSH

  10. 10

    Can a Raspberry Pi run Ubuntu?

  11. 11

    Can a Raspberry Pi run Ubuntu?

  12. 12

    Ubuntu Server ARM or Ubuntu Server Raspberry Pi?

  13. 13

    Can't install any applications on Raspberry Pi 4

  14. 14

    Ubuntu Core on Raspberry Pi ssh failed

  15. 15

    Connect to rails server remotely from raspberry pi

  16. 16

    XRDP from Windows 10 to Ubuntu Mate 20 (Raspberry PI 4) - Error: Could not acquire name on session bus

  17. 17

    Can't view Ubuntu Server (VM) in browser, I can connect with SSH

  18. 18

    Raspberry Pi won't connect to VPN

  19. 19

    Ubuntu Server with Raspberry Pi Motion Camera

  20. 20

    Ubuntu Server with Raspberry Pi Motion Camera

  21. 21

    Redistribute modified Ubuntu Server for Raspberry Pi

  22. 22

    Testing bcache with raspberry pi 4 on ubuntu

  23. 23

    KVM Bridge on Ubuntu 20.04 on Raspberry Pi 4

  24. 24

    Ubuntu Server 16.04.3 Can't Connect to Internet

  25. 25

    Can't connect to wireless network on Ubuntu Server

  26. 26

    Can I use Ubuntu One on the Raspberry Pi?

  27. 27

    Connect to Raspberry Pi through SSH without Port Forwarding

  28. 28

    SSH fails to connect from Raspberry Pi to Mac laptop

  29. 29

    How to remote SSH connect to my Raspberry Pi with static local IP?

HotTag

Archive