ssh -instaling problems

Asked by snakeubuntu on 2011-04-20

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
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/
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/ after hitting enter i got following msg
(here the ip address is of Sunil's account
Anil@'s password:

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

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


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

English Edit question
Ubuntu openssh Edit question
No assignee Edit question
Last query:
Last reply:
Emre AYTAƇ (eaytac) said : #1

Following 3 pages tutorial link will may help you;

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.