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 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 09:20 AM
ssh-keygen configuration problem brandedfundoo UNIX for Advanced & Expert Users 14 12-05-2008 10: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

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 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 02:44 PM..
  #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.
  #3 (permalink)  
Old 01-07-2009
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,909
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.
  #4 (permalink)  
Old 01-07-2009
gjp gjp is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 3
Cheers
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 09:04 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