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




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #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..