Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been wanting to have the ability to ssh into my Win 7 home machine from my laptop, from anywhere and I'm not sure how to do this. Can someone give me some advice or point me to an article that could show me how to do this? Also, would this affect the security of my home machine (sometimes I do banking there)?

The home machine has windows 7 Home X64 bit OS under a Linksys router. The laptop is running Ubuntu Lucid.


share|improve this question
Please excuse me for being nosy, but what do you want to reach your pc for via SSH? I'm just curious. – DerMike Oct 28 '11 at 14:22

I'd recommend installing OpenSSH server with Cygwin (the method is the same as Vista). In your router you'll need to forward port 22 to your Windows 7 Box. Of course, opening any facet of your machine to the public lowers security, but you can always take precautions:

  • Disallow any administrative accounts to login via SSH, you can elevate in Windows where necessary (somewhat like the sudo practice on a Linux machine)
  • Use iptables/ipchains to only allow your remote IP address (assuming a static lease)
  • Use SSH keys
share|improve this answer
I'd also recommend using some port other than 22, to reduce the chance of someone finding it open and trying to exploit it. – garyjohn Jul 13 '10 at 4:30
@garyjohn:...and use a port above 1024, as port scanners like nmap could still find it. However, I think one is pretty safe with passwords in conjunction with SSH keys. – paradroid Aug 9 '11 at 16:45
If all you want is SSH, installing the full Cygwin is overkill. There are standalone alternatives. I've had success with freeSSHd. – matthew Aug 9 '11 at 17:02

This is really a three part question;

Good Luck!

share|improve this answer

You could use MobaSSH, which is a free SSH server for Windows and compatible with any regular SSH client.

The other answers have covered the security, port-forwarding and dynamic DNS issues already.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .