The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to use ssh-keygen to login to a UNIX box codeman007 Shell Programming and Scripting 1 10-17-2008 01:34 AM
SSH-Keygen script jagnikam Shell Programming and Scripting 4 10-09-2008 06:34 PM
ssh-keygen questions (not working) tekline UNIX for Advanced & Expert Users 10 09-01-2008 09:17 PM
DNS configuration problem raylai IP Networking 2 03-03-2006 02:46 AM
ssh-keygen trust problem PaulC SuSE 4 04-21-2005 09:17 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-26-2008
brandedfundoo brandedfundoo is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 21
ssh-keygen configuration problem

I am unable to set password less entry from one server to another even after i have generated public key and have put in the authorized_keys of the target server. When i try to debug the ssh using ssh -v, it gives me

debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /home/sasdemo/.ssh/identity
debug1: Offering public key: /home/sasdemo/.ssh/id_rsa
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Offering public key: /home/sasdemo/.ssh/id_dsa
debug2: we sent a publickey packet, wait for reply

debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug2: we did not send a packet, disable method
debug1: Next authentication method: keyboard-interactive
debug2: userauth_kbdint
debug2: we sent a keyboard-interactive packet, wait for reply


also .. just to test, when i did
$cat id_dsa.pub | ssh user@server_id 'cat >> ~/.ssh/authorized_keys'
it asked for the password and then gave the error message
bsh: ~/.ssh/authorized_keys: 0402-011 Cannot create the specified file.

Any suggestions ???? Can bean shell be a problem ???
  #2 (permalink)  
Old 11-26-2008
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Location: Germany
Posts: 2,257
Did you enter a passphrase when you created the key?
  #3 (permalink)  
Old 11-26-2008
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
  
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,617
Quote:
Originally Posted by brandedfundoo View Post
Any suggestions ???? Can bean shell be a problem ???
It could be a filesystem problem: ssh does not like it when the filemode is set too generous. It should be "600", the important thing being "00" for group and world. Depending on your ssh version and the architecture you're running this might be a problem.

I hope this helps.

bakunin
  #4 (permalink)  
Old 11-26-2008
brandedfundoo brandedfundoo is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 21
No i didnot enter any passphrase ..

The filesystem ~/.ssh and authorized_keys file already contains the permission of 644 .. and in other server it's working fine ..

Is anyone aware of any type of conflict between bsh and ssh ?
  #5 (permalink)  
Old 11-26-2008
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,100
The .ssh directory should be 700.
  #6 (permalink)  
Old 11-26-2008
brandedfundoo brandedfundoo is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 21
Still not working ....

What parameters are necessary in sshd_config to get this enabled.. ?
Can someone provide me barely essential parameters settings so that i can verify mine ..
  #7 (permalink)  
Old 12-03-2008
brandedfundoo brandedfundoo is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 21
any one with any suggestion ?????????
Sponsored Links
Closed Thread

Bookmarks

Tags
shell script, shell scripting, ssh-keygen, unix scripting, unix scripting basics

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 08:26 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0