Quantcast
Channel: Active questions tagged ssh - Ask Ubuntu
Viewing all articles
Browse latest Browse all 859

SSH user1@ip_address: Permission denied (publickey)

$
0
0

I am trying to connect to a my SSH server (running on Ubuntu 16.04.2 LTS) from my local machine (Ubuntu 18.04.03 LTS).

I have created a private and public key on my local machine and copied my public key to my SSH server's authorized_keys file.

I could log in with ssh root@ip-address and I have access (as root user), but when I tried to log in as another user with command ssh name@ip-address, it generated an error message:

name@ip_address: Permission denied (publickey)

What can I do so the name@ip-address could be accessed?


Viewing all articles
Browse latest Browse all 859

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>