On Wed, Aug 13, 2008 at 10:07 AM, Sylvester Lykkehus <zly@solidonline.dk> wrote:
On 2008-08-13 15:34, Greg Freemyer wrote:
All,
I have a machine at my parents house that is behind a ISPs firewall. Console only. No X-Windows, etc.
I've tried to open up the ssh port in the firewall but it is not working. Maybe the ISP is blocking it even earlier.
Is there a service that allows that machine to open an outbound connection, and then somehow from my house tie into that connection for ssh service?
Yes, ssh :-) Use port forwarding from from that machine to your own, and then you can connect back to it.
Example: you@parents~> ssh -R 2222:localhost:22 you@home Your home machine is now listening on port 2222, and will tunnel traffic on that port to the parents on port 22 Example: you@home~> ssh localhost -p 2222
Make sure you have "AllowTcpForwarding yes" in /etc/ssh/sshd_config on your home machine.
I would try what Per suggested first though.
I'm trying the reverse tunnel approach. It seems to work, but I need to polish my approach. I want this to work even in the presence of network issues, timeouts, reboots, etc. So I have tried to put the ssh command in cron. If I use a private key to login, I'm good. So I have tried: ssh -nNT -R 2222:localhost:22 www.norcrossgroup.com That seems to work, but it leaves a ssh connection in place each time I fire it off. ie. I just tried doing it every minute about 30 minutes ago and now I have 30 ssh sessions in place between the 2 computers. Prior to that I tried this every hour (on the hour): ssh -R 2222:localhost:22 www.norcrossgroup.com sleep 3600 It seems to work, but it seemed unreliable for some reason. If I waited the hour and tried the connection in the first few minutes of the hour it seemed better. (Very limited testing.) Any suggestions for a cron entry that will work more reliably? Thanks Greg -- Greg Freemyer Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer First 99 Days Litigation White Paper - http://www.norcrossgroup.com/forms/whitepapers/99%20Days%20whitepaper.pdf The Norcross Group The Intersection of Evidence & Technology http://www.norcrossgroup.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org