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:
I first followed this http://ubuntuhandbook.org/index.php/2016/04/enable-ssh-ubuntu-16-04-lts/.
Then I confirmed the correct port was mentioned sshd_config file.
And I changed PermitRootLogin to yes.
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.
ssh localhost
orssh 127.0.0.1
on the desktop itself. If that works, SSH is working and the rest is a network configuration issue.