SSH Server for Windows using Cygwin

From: ratlung (ratlung@gmx.de)
Date: 10/22/02


From: ratlung@gmx.de (ratlung)
Date: 21 Oct 2002 18:49:48 -0700

Hi guys,

Today I was looking for a SSH Server that I can run under Windows.
Unfortunately I was not able to find much, so I just went ahead and
tried Cygwin, what I always wanted but never got to, probably because
I had no reason.

But now, since it is so easy, I though I write a little tutorial for
all of you who run into the same problem.

First you want to download the cygwin setup program @:

http://www.cygwin.com/setup.exe

Just run the setup program and follow the installation instructions
until you get to the point where you can choose the packages to
install. Here you want to install all the default package plus the
openssh and maybe openssl package from the net section, and probably
some editor like vim or emacs. If you like you can probably use bzip2,
less or some other utilities, but those are not important for the
openssh setup. And then you can start the download.

After installation you need to start cygwin using the brand new icon
on your desktop. First you might want to setup a password if you
haven't done that. But carefully, the passwd command at cygwin also
changes you password under Windows. And additionally, I tried all
those things under Win XP I am not sure if it will work under Win98,
because I had trouble setting the password. Some .dll was wrong.

Now you are ready to configure the SSH Daemon. Just type
/usr/bin/ssh-host-config. Answer most of the questions with yes or the
default value except the one about privelege separation, here say no.
Unfortunately this seems no to work because of some ownership
problems, and it decreases the amount of security provided. So don't
spread your IP addy to anyone, afterall it is running on a Microsoft
OS. The same is true for the amount of security that the cygwin
provides, it appears that you only have access to the subdirectories
of the cygwin dir but you never know. I would be carefull about
letting the ssh deamon run all day long or at least have a tight
firewall setting, which only allows know ip's access to your system.

But nevertheless now you are ready to run you just configured ssh
deamon by typing /usr/sbin/sshd.exe.
Now you can even close cygwin and take a look at the Task Manager
there it is your sshd.exe. If you want to end that process just select
it in the Task Manager and click on End Process, then you are save for
sure.

Now anyone with a SSH Client, the right IP - addy, username and
password can access your computer. For confinient file sharing I would
recommend winscp 2.0 or putty.

Have fun sharing your files

Chris



Relevant Pages

  • Re: Need help with ms2mit.exe
    ... I bet the Kerberos implementation you are using in cygwin does not have ... and run kinit, I get the ticket. ... then try to ssh, I am asked for a password. ... Jeffrey Altman wrote: ...
    (comp.protocols.kerberos)
  • Re: cygwin + ssh + VPN very slow
    ... firewalled or at least ssh access is not blocked, you just just ssh into it from your home machine, and enable X forwarding. ... Even if you cannot directly ssh into your office machine, but you can ssh into your company firewall them jump to your office machine. ... You can still achieve this without VPN. ... It doesn't depend on cygwin enviroment. ...
    (linux.redhat.misc)
  • Re: FTP Replacement (SSH?)
    ... > I'm interested in using some type of secure replacement for FTP, ... The only problem is that I'm running Windows 2000 Advanced Server. ... Select the openssh package in the cygwin installer. ... ssh is not as secure as some think if you don't trust your users to ...
    (Security-Basics)
  • Re: HELP: how to enable telnet?
    ... looking into secure single sign-on facility. ... I'll get a handle on SSH facilities (as well as ... > Oh, lastly, Cygwin is cool. ... VNC (Virtual Network Computing): ...
    (freebsd-newbies)
  • Re: having a problem with DRb
    ... On 4/16/07, Phillip Gawlowski wrote: ... Go to the Cygwin homepage, and download the installer. ... Could I create my own SSH gem or SSH module ...
    (comp.lang.ruby)

Quantcast