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 > Operating Systems > Linux > SuSE
.
google unix.com



SuSE SUSE Linux is a major operating system. The developer rights are owned by Novell, Inc.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
ssh-keygen questions (not working) tekline UNIX for Advanced & Expert Users 10 09-01-2008 09:17 PM
Dare We Outsource Trust? iBot IT Security RSS 0 05-30-2008 09:40 AM
Wikipedia: Trust but Verify iBot IT Security RSS 0 05-28-2008 03:50 PM
How to shutdown Power Trust UPS Monitoring? kanpatel HP-UX 3 11-06-2007 11:56 AM
problem with dd command or maybe AFS problem Anta Shell Programming and Scripting 0 08-25-2006 10:10 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-18-2005
PaulC PaulC is offline
Registered User
  
 

Join Date: Mar 2004
Location: Esher, Surrey, England.
Posts: 31
ssh-keygen trust problem

OK, this is the problem. I have 2 machines TestA ( Suse 9.0 ) TestB ( Mandrake 10 ) and one of our guys wants to scp from TestA to TestB without the password prompt appearing. Sounds simple so far....

Ok, I haven't used ssh-keygen before, so I create identical logins to test what I'm doing...



TestA ~user/.ssh > ssh-keygen -t dsa -f ./id_dsa ( Hit enter to set blank password )
TestA ~user/.ssh > scp id_dsa.pub user@TestA:~/.ssh ( use password )

TestB ~user/.ssh > cd ~user/.ssh
TestB ~user/.ssh > mv id_dsa.pub authorized_keys2
TestB ~user/.ssh > rm id_dsa.pub



It now works fine for the test logins, but when I try to apply this to the guy upstairs logins it still asks for the passwords....

I assume it must be down to some kind of difference in the logins but I can't really find any...

Any ideas ????
  #2 (permalink)  
Old 04-18-2005
vigsgb vigsgb is offline
Registered User
  
 

Join Date: Mar 2005
Posts: 22
I would check the permissions on the users home directory and .ssh and the files under the .ssh directory for the user that is having the issue.

Make sure you look at both machines home directories as well.
  #3 (permalink)  
Old 04-21-2005
PaulC PaulC is offline
Registered User
  
 

Join Date: Mar 2004
Location: Esher, Surrey, England.
Posts: 31
All directories are the same, all permissions are the same....



Total confusions reigns...

Is there any other system/config files that could stop this from happening ??
  #4 (permalink)  
Old 04-21-2005
dangral dangral is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2002
Posts: 699
Can you post the permissions of the .ssh directory and all the files within?
  #5 (permalink)  
Old 04-21-2005
PaulC PaulC is offline
Registered User
  
 

Join Date: Mar 2004
Location: Esher, Surrey, England.
Posts: 31
I shall humbly hold my head in shame.....

The problem was caused by the ~user/.ssh directory having 755 permissions instead off 700 on one of the boxes....

Obviously ssh protocol doesn't like the idea of having it's key files open for anyone other than the user....



Cheers for the help guys...
Sponsored Links
Closed Thread

Bookmarks

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 03:59 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
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