I need to ssh into a remote server. I set up a fresh Ubuntu install in VirtualBox for that purpose.
First of all I generated my public key:
ssh-keygen -b -4096
Then tried to ssh:
But I am getting the following error:
remote_user@remote_server: Permission denied (publickey).
Not sure what I am missing.
edit: I ran
ssh-copy-id remote_user@remote_server and got the following errors:
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys remote_user@remote_server: Permission denied (publickey).