I am a beginner ubuntu user and recently I wanted to create an ssh server on my desktop so I can access is when I'm at work through my macbook pro.
I've installed openssh
sudo apt-get install openssh-server
and I've checked my ipaddress using ifconfig. But when I try to ssh into it I keep getting the following error:
Permission denied (publickey)
Also I am using xfinity and I've enabled port forwarding on my router. I've looked for tutorials on youtube and other forums but they were all tutorials using putty.
What do i need to do to make it work?