August 29, 2001 10:29 PM

SSH for Windows

Rating: (0)
Windows IT Pro
InstantDoc ID #21992
This UNIX utility provides a secure shell for managing remote servers
Editor's Note: Bret Jordan of the University of Utah provided some configuration file examples and setup information for this article.

Nearly every day, I find myself in a situation that requires me to perform maintenance on some of my servers. That's just life in the Windows world. Usually the situation isn't critical—I need to move a file or restart a service—but because I admin...

ARTICLE TOOLS

You must be a paid Professional Member to access this entire article.

Already a Professional Member? Please log in now:

NOT A PROFESSIONAL MEMBER? YOU CHOOSE:

Monthly or Annual

Professional Membership

VIP Membership

Compare Member Benefits

Add a Comment

You can get the cygccrypto.dll from http://www.networksimplicity.com/openssh/

Murali Narasimhadevara 10/15/2002 12:44:19 PM


cygcrypto.dll should be installed with OpenSSH.In this article(21992)it is not mention where it is found.
To install just OpenSSH I installed whole cygwin packeges and copy cygcrypto.dll to c:\\ssh.Now it works.

vinod Takarkhede 8/22/2002 3:19:47 AM


Hi,

When I tried to generate the key pairs, it complained that the 'cygcrypto.dll' was not available. Where can I get that file? I browsed an FTP mirror for CyGWin, but have not found it. Other than that, I'm doing great with the installation.

hector2/11/2002 5:11:52 PM


From author, Mark Bradshaw--

In response to Maverick:
Due to a recent update in the cygwin openssh package cygcrypto.dll is now required. You can find this dll in the openssl package. Download and extract it as you would the others. Please note the excellent tip provided below by Richard Burr regarding the bz2 format.

In reponse to Peter Boyd:
The problem you are seeing is a consequence of cygwin's terminal interfacing with cygwin. You have two options here. Examine Egor Duda's software package ttyfier (some assembly required), or have an alternate login that uses the /bin/sh shell (found in the cygwin ash package).

In response to NemiSYS:
Yes, I highly recommend that folks use the installer at http://www.networksimplicity.com/openssh. Why? I made it! It stays up-to-date, which is something that this article, unfortunately, cannot do. This article is a great resource for determining what's happening behind the scenes, and giving good troubleshooting knowledge.

Mark Bradshaw 11/28/2001 12:02:04 PM


I can not start the utility ssh-keygen !! Windows ask cygcrypto.dll !! In article about given DLL nothing it is spoken. Search on Cygwin.com has given nothing. Where to search DLL? To download all package Cygwin?

Maenard Leo11/28/2001 6:54:54 AM


I find SSH on Windows to be seriously deficient when connecting into the (default) DOS CMD.EXE shell.

For example,

EDLIN and EDIT can't work. EDLIN requires CTRL&C and/or CTRL&Z to come out of an insert. These don't work.

Pipe into 'more' doesn't work. So I can't browse files with 'type filename | more'.

VI and VIM don't work

How does anyone use it to DOS CMD.EXE or don't they?

Peter M Boyd 11/13/2001 3:08:00 AM


While there is something to be said for building it yourself, there is an OpenSSH installer for Windows available at;
http://www.networksimplicity.com/openssh/
It is freeware and the readme file contains all you need to get it going. It also sets up OpenSSH as a service.
Just a heads up for anyone looking for a really quick/least effort approach. For practice though, it is still a good idea to understand how the whole things works (ie this article) versus the quick solution.

NemiSYS 10/9/2001 8:17:46 AM


For what it's worth, I was not able to generate a DSA key using the syntax of the command supplied in the article. I had to use the following (after reading openssh.org for a bit);
ssh-keygen -t "dsa" -b 1024 -f %Home%\\ssh_host_dsa_key -N ""

On another note, I found this article a good resource when teamed with a related section "Securing Windows NT/2000 Servers for the Internet" (O'Reilly's). In myo pinion it provided a scaled down install (of cygwin) which is suitable for real world deployment and application. Again, just my 2 cents and hope the above command is useful to someone.

NemiSYS 10/7/2001 5:56:28 PM


Well, my version of Winzip 8.0 could not handle the downloaded files, because of the .bz2 extension. Even using the setup.exe as recommended at the Cygwin site, following instructions produced two unworkable installations, since cygwin1.dll was not installed on either of the machines. I first tried a full installation, after a full download, on a Win2kS sp2 and then on an NT4S sp6a box. Both failed with the same error message: no cygwin1.dll in the \\bin folder. Actually, not anywhere!! Interesting, what?

Paul Dickins 9/24/2001 6:43:43 AM


The cygwin1.dll and openssh packages are now compressed in the bz2 format. For Windows users, you'll need to get bzip2-100-x86-win32.exe from ftp://sourceware.cygnus.com/pub/bzip2/v100/bzip2-100-x86-win32.exe to decompress the files. Use the "-d" flag to force the decompression.

If you try to get the bzip2 utility to do the decompression, you'll find it needs cygwin1.dll to work - so you're in a catch-22 situation.

Richard Burr 9/23/2001 4:42:56 PM


You must log on before posting a comment.

Are you a new visitor? Register Here

windows server 2008 login scripts

I have 2 win2k8 servers one pdc and bdc. The domain is exampledom.com They are connected to 2 iscsi luns which replicate each other. We are running ac...222-96118

advertisement

GOOGLE LINKS
SPONSORED LINKS
FEATURED LINKS

White Papers

Your remote offices contain valuable electronic data – are they adequately protected? Learn how proven technologies can reliably and cost-effectively back up a branch office from a central location, in real time, to disk or tape, and even utilize existing backup solutions.

Downloads

PacketTrap IT is a comprehensive and affordable network management and application monitoring solution that solves problems associated with bandwidth, network and application performance, and connectivity. Gain insight into your network - try PacketTrapIT free for 21 days!

Web Seminars

IT administrators have to solve a myriad of problems. This web seminar outlines the ten most common systems management pains - including managing highly distributed systems and dealing with data theft/loss – and the best practices to address each.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.