Quote:
Originally Posted by PatrickBaer
Without reading it, have you checked for all the requirements?
private key in .ssh/id_rsa?/declared via command line switch -i /home/user/id_private?
|
Yes, ~/.ssh/ in mac contains
id_rsa id_rsa.pub known_hosts
I tried ssh -p 2150 user@server -i ~/.ssh/id_rsa
but get the same output
Quote:
Originally Posted by PatrickBaer
public key in the servers authorized_keys file?
|
Yes I copied id_rsa_pub to ~/.ssh/authorized_keys in the server
Quote:
Originally Posted by PatrickBaer
Logging in with correct username, e.g. ssh root@server?
|
Yes
Note:
I got 2 users on my FreeBSD box user1 and user2 and my mac contain user3. Then I created keys for user3 and copyed the pub key to ~/.ssh/authorized_keys of user1(on the server). And then when I'm logged in into mac as user3 and then try to ssh to server (freeBSD) as user1 (ssh -p 2150 user1@server) I get this error, but I get the similar error when I try to login as user2 (ssh -p 2150 user2@server) for which there is no ~/.ssh/ directory in server. This mean there is a possibility the ssh is not reading ~/.ssh/autorized_keys.