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
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