0

I am trying to access my Ubuntu 16.04 desktop over SSH, but I keep getting the error 'Connection refused'. What I've done is the following:

But still I get connection refused when I enter ssh myubuntuusername@public-ip.

Does anyone have an idea what I can do? Thanks a lot.

9
  • Is your system actually accessible at "public-ip"?
    – muru
    Oct 1, 2018 at 7:24
  • How do I check this? I've also tried the local IP, since I am often on the same WiFi network but also this returned 'connection refused'.
    – Stefan1993
    Oct 1, 2018 at 7:26
  • If you have some other service running on your system, try accessing that. But you would likely already know if your network was a configured for this desktop to publicly accessible at that IP. How did you set that up?
    – muru
    Oct 1, 2018 at 7:28
  • 2
    Try ssh localhost or ssh 127.0.0.1 on the desktop itself. If that works, SSH is working and the rest is a network configuration issue.
    – muru
    Oct 1, 2018 at 7:29
  • I wonder if you might only have key/certificate authentication enabled, but aren't using a key to log in, so it's kicking you off immediately... or would that give a different error
    – Xen2050
    Oct 1, 2018 at 7:54

0

You must log in to answer this question.

Browse other questions tagged .