SSH connection problem

Hello,

I am trying to login to a server that I have created in Bham with the name vas (147.188.173.163).
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:

@147.188.173.163: Permission denied (publickey).

I have tried the following two commands:

ssh 147.188.173.163
ssh -i .ssh/example.pem 147.188.173.163

but unfortunately no luck.

Thank you very much in advance,
Vasilis.

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 147.188.173.163

2 Likes

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.