Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-18-2003, 11:27 AM   #1
LQ Newbie
Registered: Oct 2003
Location: Scotland
Distribution: RedHat 9.0
Posts: 17

Rep: Reputation: 0
Starting SSH Reverse tunnelling at boot

Hi folks,

Im new to ssh tunneling

What i want to do is open a reverse ssh tunnel to a server from behind a firewall. i have figured out how to do this from the xterm, but what i want to do is get it to start this tunnel anytime the system reboots.

I have tried creating a script like this;

/usr/bin/ssh -T -R 8888:localhost:80 -g -e none &
/usr/bin/ssh -T -R 8888:localhost:80 -g -e none &

These run fine if i start them in a terminal window but when i added them to /etc/rc.d/rc.local it doesnt work.

# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local

but this doesnt work.

Any ideas folks?

Cheers in advance

Last edited by BU5T4; 11-18-2003 at 12:02 PM.
Old 11-18-2003, 02:03 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
What are the permissions/ownerships on
the file?

Old 11-18-2003, 03:33 PM   #3
LQ Newbie
Registered: Oct 2003
Location: Scotland
Distribution: RedHat 9.0
Posts: 17

Original Poster
Rep: Reputation: 0
the permissions on the sript? they are 766? i think. they are set as executable

I't doesnt matter now any way i have just opened port forwarding on my router and i can start it by ssh'ing into the box and starting it manually.

Cheers for your advice anyways


Last edited by BU5T4; 11-18-2003 at 03:35 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tunnelling yahoo messenger through SSH pnellesen Linux - Networking 1 09-17-2005 06:37 PM
tightvnc using ssh tunnelling curmudgeon42 Linux - Software 1 08-18-2004 09:40 PM
reverse ssh? slashcom Linux - Software 3 08-12-2004 10:51 PM
ssh tunnelling internet access bfkeats Linux - Networking 2 03-19-2004 03:13 PM
Advantages in SSH tunnelling for net access?? Nerd2 Linux - Software 9 06-16-2003 04:13 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:25 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration