On Thu, Apr 28, 2011 at 9:16 AM, Bill Oliver <[email protected]> wrote:
> I am trying to establish a reverse shell from a linux computer of mine at
> work, behind a firewall/router that does NAT to a linux computer of mine at
> home so I can access files when I work at home.  Both are Ubuntu 10.
>
> I'm doing it the ssh way rather than the netcat way, e.g. on the machine at
> work, it's:
>
> ssh -NR 3333:localhost:22 [email protected]
>
> and at home, it's:
>
> ssh myname@localhost -P 3333
>
>
>
> This works fine once established. I can remotely log in on my home box while
> at work and use the reverse shell.   But...
>
> Usually, by the time I finish my commute home, the connection has dropped.
>  I assume it has timed out.
>
> Is there a way to keep this alive for extended periods of time?

http://embraceubuntu.com/2006/02/03/keeping-ssh-sessions-alive/

Also poke through the /etc/sshd_config on the remote host. I have many
servers which drop after inactivity for security purposes. (see man
sshd_config)

Also consider some form of dynamic DNS service - most are free, and
can make things work in a pinch. On many ISP's TOS it's technically
illegal (the legal-ese reads "Run any form of server" so even a lot of
things they don't care about are technically illegal) but if you're
not serving the public over the residential connection you should be
fine.

-- 
Registered Linux Addict #431495
For Faith and Family! | John 3:16!
fsdev.net | 0x5f3759df.org | chrismiller.at

-- 
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup
Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules or 
http://cdn.fsdev.net/List-Rules.pdf)

Reply via email to