LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-13-2010, 01:50 AM   #1
purusrhce@gmail.com
LQ Newbie
 
Registered: Dec 2010
Posts: 13

Rep: Reputation: 0
Question SSH passwordless authentication


Hi,

I have a doubt in SSH passwordless authentication. I did the following in test and test1 servers.

bakthava@test:~> ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/cantin/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/cantin/.ssh/id_rsa.
Your public key has been saved in /home/cantin/.ssh/id_rsa.pub.
The key fingerprint is:
f6:61:a8:27:35:cf:4c:6d:13:22:70:cf:4c:c8:a0:23 bakthava@test

I have given the passphrase as "testkey", then the private key was saved as .ssh/id_rsa and the public key was saved in .ssh/id_rsa.pub,

I have copied the contents of the id_rsa.pub to test1 server under /home/bakthava/.ssh/authorized_keys.

When I ssh from test to test1 it is asking for the passphrase, is the way it works or anything i did wrong. I dont want to give the passphrase when am login from test to test1.

Any help?

Last edited by purusrhce@gmail.com; 12-13-2010 at 01:51 AM.
 
Old 12-13-2010, 02:08 AM   #2
prodev05
Member
 
Registered: Jul 2009
Location: Planet Earth
Distribution: Unix & Linux Variants
Posts: 304

Rep: Reputation: 20
if you don't want to ask for pass-phrase then don't give any phrase key while generating the ssh key. Try re-creating the key with out giving pass-phrase key. Then copy the generated key to the required system.


Thanks & Regards
 
Old 12-13-2010, 02:15 AM   #3
techz123
LQ Newbie
 
Registered: Dec 2010
Location: India
Posts: 4

Rep: Reputation: 0
try this. Surely u will succeeded.
http://servertechz.com/linux/ssh-log...rd-simple-way/
 
Old 12-13-2010, 02:30 AM   #4
purusrhce@gmail.com
LQ Newbie
 
Registered: Dec 2010
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by techz123 View Post
======================================================================================

Hey thanks a lot it works fine
 
Old 12-14-2010, 06:19 AM   #5
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
I would advice not to use passphraseless ssh-keys. You can use a local ssh-agent + agent forwarding and you have to enter the passphrase only one time. Another option is to use hostbased authentication, where you also don't need any passphrase at all (even no ssh-keys for each user).
 
  


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
Passwordless ssh configuration with Active Directory authentication rsussman Linux - Software 1 06-05-2009 12:10 PM
passwordless authentication sherimm Linux - Software 17 12-11-2008 12:27 AM
Can't use passwordless ssh sunhui Linux - Security 1 10-03-2006 09:29 PM
Passwordless SSH with SSH commercial server and open ssh cereal83 Linux - General 7 04-18-2006 01:34 PM
Regarding Passwordless SSH nedian123 Linux - Software 1 08-05-2004 06:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:20 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
Open Source Consulting | Domain Registration