The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
ssh keygen script in NFS environment deo_kaustubh Shell Programming and Scripting 2 12-09-2008 08:20 AM
ssh-keygen configuration problem brandedfundoo UNIX for Advanced & Expert Users 14 12-05-2008 09:13 PM
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

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-07-2009
gjp gjp is offline
Registered User
 

Join Date: Jan 2009
Posts: 3
Unhappy Solved: SSH-KEYGEN doesn't work

Hi,

Am running the following commands on our server to generate a key for passwordless SSH, however we are getting 100% blank key files.

E.g. when looking id_dsa.pub or id_dsa they are 100% empty - the files get created, but contain no content and have a file size of 0b.

mkdir ~/.ssh
chmod 0700 ~/.ssh
ssh-keygen -t dsa -f ~/.ssh/id_dsa

*no pass phrase is put in*

Your identification has been saved in /root/.ssh/id_dsa.
Your public key has been saved in /root/.ssh/id_dsa.pub.
The key fingerprint is:

xx:xx:xx:xxx........

And then the files id_dsa amd id_dsa.pub are both empty. There but empty.

Any ideas?

I have tried all the various different options for CHMOD at the start, 777, 755, 666 etc ... I have also tried both with and without a password. All of them still give me an empty file.

Last edited by gjp; 01-07-2009 at 01:44 PM..
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-07-2009
gjp gjp is offline
Registered User
 

Join Date: Jan 2009
Posts: 3
Problem Solved

My bad. Thanks all.

The /root user directory was full.
It wouldn't allow any more data to be written to it.
Reply With Quote
  #3 (permalink)  
Old 01-07-2009
Registered User
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,464
Is your SSL OpenSSL or something commercial? Your listing works perfectly fine for me. Try 'echo something > ~/.ssh/id_dsa', just to see if the system itself is having problems writing to that file for some reason.

[edit] Hah, I knew it.
Reply With Quote
  #4 (permalink)  
Old 01-07-2009
gjp gjp is offline
Registered User
 

Join Date: Jan 2009
Posts: 3
Cheers
Reply With Quote
Google The UNIX and Linux Forums
Reply

Bookmarks

Tags
None

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:




All times are GMT -4. The time now is 07:45 PM.


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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66