First time usage, unable to SSH

March 14, 2017 196 views
PHP Arch Linux

I have created and recreated to my hearts content, but I cant SSH

~/Documents/Projects/dev/laravel/api-stats master*
❯ ssh root@
Permission denied (publickey).

I have also tried

~/Documents/Projects/dev/laravel/api-stats master*
❯ ssh root:<password>@
Permission denied (publickey).

What is the correct method for ssh connection

What IP is the correct one?

198.211.97.xx or (

1 Answer


To specify an SSH key when using ssh, you need to use the -i argument.


ssh root@ -i /path/to/private_key

Without -i, you have to provide a password (i.e. the password associated with the users' account). If passwords are disabled (which is the case most of the time when SSH keys are used), then you will only be able to login with the private key.

Have another answer? Share your knowledge.