I created a server on Linode using forge.laravel.
Everything seems to work fine but now I'm trying to access the server via SSH. Forge by default creates servers that do now allow SSH access via password and so I must add an SSH key to the server and there is an option on the control panel under the server manager tab to do so.
I followed an article from github to create the SSH keys and it works fine connecting to github.
help.github.com/articles/generating-ssh-keys
After placing my public key on forge I tried access the server via SSH using the following:
ssh MY_SERVER_PUBLIC_IP
ssh forge@MY_SERVER_PUBLIC_IP -i /home/MYUSER/.ssh/id_rsa.pub
I got the following error:
Permission denied (publickey)
Any ideas on how to solve this problem????
-i
man ssh
. Or googleunix manpage ssh
.