SSH connection problem


I am trying to login to a server that I have created in Bham with the name vas (
I have followed the instructions that you provided in the tutorial (ssh key generation for mac) but when I am trying to connect I receive the following error:

@ Permission denied (publickey).

I have tried the following two commands:

ssh -i .ssh/example.pem

but unfortunately no luck.

Thank you very much in advance,

Remember that you need to supply a username. If the image was Ubuntu, then the username is ubuntu and if it was CentOS the username is centos.

You should be able to ssh with:

ssh -l ubuntu -i ~/.ssh/example.pem

1 Like

Thank you very much!!!
I was thinking that it would ask me for the username :relieved:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.