Jump to content


Photo

Establishing ssh tunnel on boot

DM500

  • Please log in to reply
5 replies to this topic

#1 dumb

  • Senior Member
  • 62 posts

0
Neutral

Posted 1 October 2008 - 11:36

problem is .. I can establish ssh tunnel with remote maschine with command:
ssh -T -i /path/to/id -L xxxx:remoteip:yyyy user@remote

where to put it to have tunnel every boot ??
it there a way to make it background ??
command
"ssh -T -i /path/to/id -L xxxx:remoteip:yyyy user@remote &" is establishing tunnel for few secs and dies

i'm using binary taken from dm7020 jade "dropbearmulti"

Re: Establishing ssh tunnel on boot #2 WanWizard

  • PLi® Core member
  • 68,625 posts

+1,739
Excellent

Posted 1 October 2008 - 18:54

On a DM500 you can create the file /var/etc/init, and put the commands in there that needs to be executed at boot time. Don't forget to CHMOD 775...

I can't help you with your ssh question.

Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Establishing ssh tunnel on boot #3 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 1 October 2008 - 21:19

how about -f?
Not sure what you're trying to do with -T, and whether is it implemented at all by dropbear

Re: Establishing ssh tunnel on boot #4 dumb

  • Senior Member
  • 62 posts

0
Neutral

Posted 2 October 2008 - 07:05

-T Don't allocate a pty

I can't see -f option

Dropbear client v0.48
Usage: ssh [options] [user@]host
Options are:
-p <remoteport>
-l <username>
-t Allocate a pty
-T Don't allocate a pty
-i <identityfile> (multiple allowed)
-L <listenport:remotehost:remoteport> Local port forwarding
-g Allow remote hosts to connect to forwarded ports
-R <listenport:remotehost:remoteport> Remote port forwarding


I'll try with /var/etc/init.. is it for all images or only for pli images ??

Re: Establishing ssh tunnel on boot #5 dumb

  • Senior Member
  • 62 posts

0
Neutral

Posted 2 October 2008 - 12:01

root@dreambox:~> cat /var/etc/init
#!/bin/sh

/var/sbin/ssh -T -i /var/.ssh/id_rsa -L xxxx:192.168.1.200:yyyy user@host

still nothing...

Re: Establishing ssh tunnel on boot #6 dumb

  • Senior Member
  • 62 posts

0
Neutral

Posted 2 October 2008 - 13:01

case closed.. i've created reverse ssh tunnel.



Also tagged with one or more of these keywords: DM500

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users