Run OpenSSH sshd on Windows without Cygwin

"OpenSSH is a FREE version of the SSH connectivity tools that technical users of the Internet rely on".
 
For Windows Vista Enterprise, Ultimate and Server 2008:
  1. Start -> Control Panel -> Programs -> Turn Windows features on or off, install "Subsystem for UNIX-based Applications". Reboot.
    Windows Server 2008 Subsystem for UNIX-based Applications (SUA)
    (Windows Server 2008)

    Windows Vista Subsystem for UNIX-based Applications (SUA) (Vista)

  2. Install Utilities and SDK for Subsystem for UNIX-based Applications in Microsoft Windows Vista RTM/Windows Vista SP1 and Windows Server 2008. Reboot.
    Subsystem for UNIX-based Applications (SUA) Utilities and SDK
  3. Join UNIX Tools Community.
  4. Download pkg-current-bin60.sh with the user name and password from previous step and save it to the desktop.
  5. Start "C Shell" as administrator.
    C Shell
  6. sh Desktop/pkg-current-bin60.sh

 

For Windows 2003 R2:

to be done…

 

For Windows 2000, XP, 2003:

  1. Install Windows Services for UNIX Version 3.5. Reboot.
    Service for UNIX (SFU) 3.5
  2. Join UNIX Tools Community.
  3. Download pkg-current-bin35.sh with the user name and password from previous step and save it to C:\.
  4. Start "C Shell" as administrator.
  5. sh /dev/fs/C/pkg-current-bin35.sh

 

Generic Steps:

  1. Start "C Shell" as administrator.
  2. pkg_update -L openssh, follow the instructions on the screen.
  3. pkg_update -L openssh, again.
  • To start sshd manually: /etc/init.d/sshd start
  • To stop sshd: /etc/init.d/sshd stop
  • Prevent sshd from starting with Windows: mv /etc/rc2.d/S32sshd /etc/rc2.d/sshd
  • Let sshd starts with Windows: mv /etc/rc2.d/sshd /etc/rc2.d/S32sshd

廣告
本篇發表於 Microsoft Windows。將永久鏈結加入書籤。

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

您的留言將使用 WordPress.com 帳號。 登出 / 變更 )

Twitter picture

您的留言將使用 Twitter 帳號。 登出 / 變更 )

Facebook照片

您的留言將使用 Facebook 帳號。 登出 / 變更 )

Google+ photo

您的留言將使用 Google+ 帳號。 登出 / 變更 )

連結到 %s