View Single Post
  #3   (View Single Post)  
Old 12th October 2008
rex rex is offline
Real Name: Nikhil Rathod
Shell Scout
 
Join Date: May 2008
Location: Chicago
Posts: 114
Default

Quote:
Originally Posted by PatrickBaer View Post
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 View Post
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 View Post
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.

Last edited by rex; 12th October 2008 at 06:21 PM.
Reply With Quote