Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

Thanks!

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

3 Answers 3

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
2  
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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.