Set Up SSH Server on Windows XP

By Zhiqiang Ma On Dec 6, 2012

It is useful sometimes to set up a sshd server on a Windows. One example is using remote forwards tunnel to pass through the firewall.

My platform is Windows XP SP3.

The sshd server is sshwindows. It can be dowloaded from here: [url]http://sshwindows.sourceforge.net/[/url]. The version I use here is 3.8p1-1 20040709.

It is really easy:

1) Run sshwindows installer and click OK and OK…

2) Run cmd.exe:

3) cd C:\Program Files\OpenSSH\bin (it depends on the sshd’s install location)

4) ‘mkgroup -l >> ..\etc\group’

5) ‘mkpasswd -l >> ..\etc\passwd’

Now all local users are added to the sshd users list. More details can be found in the readme.txt file.

6) Configuration the firewall and let it allow the sshd service listening on port 22

7) Start the sshd service: ‘net start “OpenSSH Server”‘

Now it is OK ;) Try to ssh to the windows and have fun.

There are some problems such as the default home is “/home/USERNAME”, but you just get a warning and you can change to the directory by yourself. At least, it works.

By: Zhiqiang Ma Last updated: Dec 6, 2012 Views: 2,323
Tags: , , ,

About Zhiqiang Ma

Zhiqiang Ma is a PhD candidate at Dep. of CSE, HKUST. He is interested in system software for cloud computing, virtualization of large-scale distributed system, etc. Find Zhiqiang on Facebook, Twitter, LinkedIn and Google+.

Like this post? Subscribe Fclose.com's RSS feed.
Have questions not covered here? Ask Fclose.
3 Comments on Set Up SSH Server on Windows XP | Add Comment
  • Thanks for ones marvelous posting! I seriously enjoyed reading it, you might
    be a great author.I will be sure to bookmark your blog and will eventually come back sometime soon.
    I want to encourage continue your great posts, have a nice day!

  • I know the street is back to you in your facebook photo
    It is a start of a long “hot” walking to the pnly Peak mount of Honk Kong
    The only “fresh” place of Honk Kong and on the top exist a wonderfull
    golf club restaraunt , where I haved a very good dinner a lot of years ago
    It is n’t ?

    • Actually it in my University: HKUST. HKUST is built on the slope of a mountain facing the beautiful sea. On this photo, I was back to the sea and facing the mountain in the campus.

      The Peak is also a beautiful place in HK. I have been there twice but unfortunately I didn’t notice the golf club restaurant but just had dinner in a Chinese one.

Add your comments, share your thoughts

Be nice. Keep it clean. Stay on topic. No spam.