How to securely copy your SSH key file to a remote host for secure passwordless login on Ubuntu 15.10 wily.

On remote host

Enable passwords authentication in remote host:

/etc/ssh/sshd_config

service ssh restart

 

On local host

ssh-keygen -t rsa -b 4096

ssh-copy-id <username>@<host>

 

Then on remote host disable password authentication and restart ssh

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.