Linked by Amjith Ramanujam on Wed 23rd Jul 2008 16:34 UTC, submitted by LinucksGirl
Linux In this article, learn how to be a more productive Linux systems administrator. These 10 essential tricks will lead you on your way to being one powerful Linux systems administrator. Learn about SSH tunnels, VNC, password recovery, console spying, and more. Examples accompany each trick, so you can duplicate them on your own systems.
Permalink for comment 324214
To read all comments associated with this story, please click here.
Trick #5
by BSDfan on Wed 23rd Jul 2008 17:24 UTC
BSDfan
Member since:
2007-03-14

It's not a "Linux trick", it's a documented OpenSSH feature that works on any supported system.

He could have saved a step as well...

His first command on 'ginger' was:
ssh -R 2222:localhost:22 thedude@blackbox.example.com

..and then this on 'blackbox':
while [ 1 ]; do date; sleep 300; done

A better alternative would be:
ssh -Nn -T -R 2222:localhost:22 thedude@blackbox.example.com

Read the man page to learn what they do.. ;)

Reply Score: 4