LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-06-2010, 02:00 AM   #1
fernfrancis
Member
 
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
http://linuxproblem.org/art_9.html
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
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
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
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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.


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

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

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

Code:
ssh t t -q 10.180.8.231 date
the above command displays date on Server(10.180.8.231)

(*)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
Code:
[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/id_rsa.pub.
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 id_rsa.pub file to remote server with the name as authorized_keys.
Code:
scp -p /root/.ssh/id_rsa.pub root@10.180.8.232:/root/.ssh/authorized_keys

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


Reply


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


All times are GMT -5. The time now is 08:42 PM.

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