LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-07-2014, 11:18 PM   #1
paulus89
LQ Newbie
 
Registered: Jun 2014
Posts: 26

Rep: Reputation: Disabled
ssh without password prompting


Dear Seniors,

I am trying to do ssh without password ..but it does not work..

I have ran ssh-keygen and copy the id to another linux box

ssh-copy-id -i id_rsa.pub 10.100.100.20

the file named authorized_keys generated at 10.100.100.20

but I still unable to login without password ... what I missed

please help

thank you
 
Old 07-07-2014, 11:42 PM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
read the links in my sig. they give full details on howto properly setup ssh keys including permissions.
 
Old 07-08-2014, 12:29 AM   #3
paulus89
LQ Newbie
 
Registered: Jun 2014
Posts: 26

Original Poster
Rep: Reputation: Disabled
hello

I have followed the article on how to create ssh keys, the authorized_keys also has been copied to target server but it still requires password..

[root@proxy move]# rsync -avz -e ssh /root/move root@10.100.100.20:/from6
Enter passphrase for key '/root/.ssh/id_rsa':

could you please help?

thank you
 
Old 07-08-2014, 02:05 AM   #4
eklavya
Member
 
Registered: Mar 2013
Posts: 622

Rep: Reputation: 136Reputation: 136
It is not asking password of the server, it is asking passphrase which has been provided when key was generated.
You can use ssh-agent to remember the passphrase for you.

Run:
Code:
ssh-agent bash
ssh-add /root/.ssh/id_rsa
Now enter passpharse and once identity will be added, it won't ask again.
 
1 members found this post helpful.
Old 07-08-2014, 04:52 AM   #5
paulus89
LQ Newbie
 
Registered: Jun 2014
Posts: 26

Original Poster
Rep: Reputation: Disabled
thanks all .. it resolved
 
  


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
[SOLVED] Disabling of ssh Prompting for Password devUnix Linux - Server 4 07-19-2011 09:24 AM
ssh without prompting password siva balan Linux - Networking 1 09-28-2010 02:14 AM
ssh prompting password maooah Linux - Enterprise 4 12-05-2007 09:42 AM
ssh not prompting for password and thus not working quarry_06 Linux - Networking 2 12-14-2005 04:17 PM
Ssh without prompting for a password deqmacrom Linux - General 2 04-21-2005 03:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:16 AM.

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