OpenSSH keygen problem on Windows 2003

Posted on 2009-04-23
Last Modified: 2013-11-15
Now that I have OpenSSH working correctly on our Windows 2003 server the vendor now wishes for an RSA key for logging on. When I log on as the user and type ssh-keygen -b 1024 -t rsa I get the first prompt asking where I'd like to keep the file. If I simply take what it gives me and hit Enter nothing happens. When I look at the home directory for the user I see that an .ssh directory has been created with the user being the owner and no other permissions.

I've tried making the user a member of the admin group just to test for permissions, create the ssh directory myself thinking the .ssh is an illegal name for a Windows system, and tried a different path without any luck. Has anyone else gotten this to work?
Question by:mklippel
    LVL 14

    Expert Comment

    I tried it and got just the same as you.  I tried different users and even tried changing my default /home folder (as the readme.txt file explains), but nothing.

    Author Comment

    Just what I need. The last piece to getting this project put to bed and this pops up.
    LVL 14

    Expert Comment

    Mine is playing up, so I'll reinstall and try again tomorrow.  In the meantime, I was looking at this manual and I thought that perhaps verbose mode (-v -v -v) might help.  Also, perhaps a filename (-f) is required.
    Here's another Windows but old guide that may give you some ideas

    And here's another.  I really have no idea what I'm doing, so I'm just throwing pages at you ;>

    Actually this last one looks exactly like our environment.  Here's to hoping.
    LVL 14

    Expert Comment

    Hey mklippel.  I still can't get it working via putty ... but I managed to create the keys just using the local machine's command prompt.  It was instantaneous.  So I don't know what the ramificatios of this are, but I assume it'll be fine to create them this way.
    LVL 14

    Accepted Solution

    So I basically just followed the example in part 3 of, except doing it from the server's command prompt.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Suggested Solutions

    I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
    In our personal lives, we have well-designed consumer apps to delight us and make even the most complex transactions simple. Many enterprise applications, however, are a bit behind the times. For an enterprise app to be successful in today's tech wo…
    This video will demonstrate how to find the puppet warp tool from the edit menu and where to put the points to edit.
    After watching the Introduction to GIMP this tutorial will show you additional tools to use in GIMP.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now