Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-06-2010, 02:00 AM   #1
Registered: Feb 2009
Location: Goa(India)-Sharjah(UAE)
Distribution: RHEL,centos,fedora,ubuntu
Posts: 229

Rep: Reputation: 18
ssh without password

Hi i am trying to ssh form one linux system to another , my desktop is ubunto 9.04 and the remote linux machine is centos 5.4.
i followed the steps as stated in this site
but still it prompts me for password

also uncommented the line IdentityFile ~/.ssh/id_rsa in /etc/ssh/ssh_config file
but still no results

please help
Old 07-06-2010, 02:13 AM   #2
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,629

Rep: Reputation: Disabled
I have a setup where CentOS5 is the server and I usually ssh to it when needed. I have the configurations done and works for me. You are surely going wrong somewhere.
Instead of copying the rsa keys, you could also use ssh-copy command. Thats the better way. Look out for the man pages.
Old 07-06-2010, 02:29 AM   #3
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913
In doubt use -vvv as a flag to ssh to see why you fail; the most
likely (common) issue is that you didn't change the perms on the
.ssh directory on the target machine as suggested in the tutorial.

Old 07-06-2010, 03:06 AM   #4
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Rep: Reputation: 37
See if following works for you.

First login to the Client say (A) . Type following command.

ssh t t -q date
the above command displays date on Server(

(*)Add keygen to avoid prompting for password while running ssh command.

Type rsa-keygen t rsa command at client.
When asked to save the file just press enter
[root@ABC-VMGR-51 .ssh]# ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
#by default the key is saved in /root/.ssh/id_rsa
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/
The key fingerprint is:
49:66:a2:5f:73:5f:d4:fc:31:24:44:41:32:01:58:58 root@ABC-VMGR-51
Then ssh the file to remote server with the name as authorized_keys.
scp -p /root/.ssh/ root@

Last edited by pinga123; 07-06-2010 at 03:09 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH without password? your_shadow03 Linux - Server 18 02-13-2009 07:51 PM
get "failed password" when scripts ssh in, but ok when I manually ssh in??? callagga Linux - Networking 4 02-06-2009 03:49 PM
ssh without a Password paragkalra Linux - Newbie 14 11-04-2007 03:05 PM
need help with no password ssh and ssh-agent hedpe Linux - Networking 3 02-08-2007 09:49 PM
SSH without password Kocil Linux - Networking 6 12-16-2003 03:59 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:33 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration