Home > Command-Line, Open Source > Cygwin SSH server

Cygwin SSH server

To setup the server, run ssh-host-config

fadli@badai ~
$ ssh-host-config
Generating /etc/ssh_host_key
Generating /etc/ssh_host_rsa_key
Generating /etc/ssh_host_dsa_key
Generating /etc/ssh_config file
Privilege separation is set to yes by default since OpenSSH 3.3.
However, this requires a non-privileged account called ‘sshd’.
For more info on privilege separation read /usr/share/doc/openssh/README.privsep
.Should privilege separation be used? (yes/no) yes
Warning: The following function requires administrator privileges!
Should this script create a local user ‘sshd’ on this machine? (yes/no) yes
Generating /etc/sshd_config file
Added ssh to C:\WINDOWS\system32\drivers\etc\services

Warning: The following functions require administrator privileges!

Do you want to install sshd as service?
(Say “no” if it’s already installed as service) (yes/no) yes

Which value should the environment variable CYGWIN have when
sshd starts? It’s recommended to set at least “ntsec” to be
able to change user context without password.
Default is “ntsec”. CYGWIN=ntsec tty

The service has been installed under LocalSystem account.
To start the service, call `net start sshd’ or `cygrunsrv -S sshd’.

Host configuration finished. Have fun!

To run the server, run net start sshd

fadli@badai ~
$ net start sshd
The CYGWIN sshd service is starting.
The CYGWIN sshd service was started successfully.

To stop the server, run net stop sshd

fadli@badai ~
$ net stop sshd
The CYGWIN sshd service is stopping.
The CYGWIN sshd service was stopped successfully.

Categories: Command-Line, Open Source
  1. 10/05/2007 at 6:05 pm

    Ape khabar ?

  2. fadli79uk
    14/05/2007 at 2:21 am

    la demo. khabar baik. guane bule sesat sini nih? hehehe 🙂

  3. 24/05/2007 at 4:52 am

    Saja jengok kawan2. Demo guano, dok nampok online pung ? Dok mano lonih? Keje ok ?

  4. fadli79uk
    24/05/2007 at 5:27 am

    Kawe ok. keje pun ok. beres jah. kawe meme jare main instant messanger loni. ntah la.

  5. 24/05/2007 at 8:39 am

    comel demo punya blog

  6. 24/05/2007 at 8:40 am

    kawe dok pasti, tapi time kat blog nih cam salah je ?

  7. 24/05/2007 at 8:41 am

    Kawe balik kampung hari nih, dlm seminggu gak

  8. fadli79uk
    29/05/2007 at 9:43 am

    balik sempena cuti sekoloh ke?
    kawe guna time UTC la. tu yang tak sama dengan waktu Malaysia tu

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: