ssh -instaling problems

Asked by snakeubuntu

Hi !
Everybody out there
 I'm quite new to Linux .I'm using ubuntu 10.04. I added two user with different name.
Name of the users are following 1:- Anil 2: Sunil .
Both user have their home directory.

Now problem is that,I want Anil can ssh in to Sunil's account without using pass word.
I did the following steps :
su Anil press enter.
Enter the password of anil's account (which is "anil")
In Anil account i just type command
 ssh-keygen & press enter
ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/Anil/.ssh/id_rsa):
/home/Anil/.ssh/id_rsa already exists.
Overwrite (y/n)? Y
Enter passphrase (empty for no passphrase): (I'm using no paraphrase)
Enter same passphrase again:
Your identification has been saved in /home/Anil/.ssh/id_rsa.
Your public key has been saved in /home/Anil/.ssh/id_rsa.pub.
The key fingerprint is:
f4:9e:f6:08:67:7f:7d:ee:1e:d3:a5:58:84:87:c9:6c Anil@ws40-man-lin
The key's randomart image is:
+--[ RSA 2048]----+
| |
| o + |
| . E o |
| . . . o |
| S . . .|
| . . o .o|
| . * . .+.|
| = + . =|
| . o. +=|
+-----------------+

than i use the command

ssh-copy-id -i /home/Anil/.ssh/id_rsa.pub 192.168.0.133 after hitting enter i got following msg
(here the ip address is of Sunil's account
Anil@192.168.0.133's password:

i enter the Anil's password (which is "anil").
I got the msg

Now try logging into the machine, with "ssh '192.168.0.133'", and check in:

  .ssh/authorized_keys

to make sure we haven't added extra keys that you weren't expecting.

After that i tried to ssh into Sunil's account it still ask for password.

Can you tell me how to what I'm doing wrong?
What should i do to make passwored less access to account ?
Please help this novice fellow.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu openssh Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Emre AYTAÇ (eaytac) said :
#1

Following 3 pages tutorial link will may help you;

http://www.debuntu.org/ssh-key-based-authentication

Hope this helps...

Can you help with this problem?

Provide an answer of your own, or ask snakeubuntu for more information if necessary.

To post a message you must log in.