I installed openssh serve on my computer with Ubuntu 16.04. Then I generated rsa key using the following instructions:linux rsa. I also transfered it to host as suggested in the link, though I don't understand why I need to transfer when host is my local computer.
I tried to sudo restart ssh
but got the following error message:
restart: Unable to connect to Upstart:
Failed to connect to socket /com/ubuntu/upstart: Connection refused
Do you know what is wrong and how to fix it?
ssh localhost
commands works fine.
Also where is private key and can I simply move it to computer that I will be logging from?
sudo service ssh restart
notsudo restart ssh
. Also, just out of curiosity, why are you SSHing to your own machine?