RPiScrub
Posts: 9
Joined: Tue Nov 11, 2014 8:15 am

Reverse SSH Tunneling

Fri Nov 14, 2014 2:34 am

Hi all,

Is there any comprehensive guide out there for reverse SSH tunneling that involves using password to connect instead of using keys to do so?

I know there are some that uses keys to do the job, but i am more interested in using password instead.

Is there anyone out there that is able to do reverse SSH tunneling using password instead of using keys?

I am pretty new to Raspi so i don't really know much about it for now.

Thanks for the help!!

User avatar
default_user8
Posts: 680
Joined: Mon Nov 18, 2013 3:11 am

Re: Reverse SSH Tunneling

Fri Nov 14, 2014 4:57 am

http://m.wikihow.com/Create-a-Reverse-Ssh-Tunnel

Skip the part about creating keys and disabling password authentication and you should be set.
Two heads are better than one, unless one's a goat head.

RPiScrub
Posts: 9
Joined: Tue Nov 11, 2014 8:15 am

Re: Reverse SSH Tunneling

Mon Nov 17, 2014 3:22 am

default_user8 wrote:http://m.wikihow.com/Create-a-Reverse-Ssh-Tunnel

Skip the part about creating keys and disabling password authentication and you should be set.

Sorry for the late reply. I will try it out now, thanks!!

RPiScrub
Posts: 9
Joined: Tue Nov 11, 2014 8:15 am

Re: Reverse SSH Tunneling

Mon Nov 17, 2014 9:56 am

default_user8 wrote:http://m.wikihow.com/Create-a-Reverse-Ssh-Tunnel

Skip the part about creating keys and disabling password authentication and you should be set.
Hi, I am still unable to connect. I used the correct port '22' and it doesn't work.

Sorry if i am unable to explain clearly, I am still new on Raspberry Pi.

Thanks!!

User avatar
RaTTuS
Posts: 10559
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Reverse SSH Tunneling

Mon Nov 17, 2014 10:18 am

exactly what have you tried
exactly what errors have you got
be concise and clear
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

RPiScrub
Posts: 9
Joined: Tue Nov 11, 2014 8:15 am

Re: Reverse SSH Tunneling

Tue Nov 18, 2014 1:29 am

RaTTuS wrote:exactly what have you tried
exactly what errors have you got
be concise and clear
Sorry for being unclear.

I have followed this link: http://m.wikihow.com/Create-a-Reverse-Ssh-Tunnel
I skipped step 2, 4, 5 & 6, following the rests of the steps exactly like they said.

However, when i reach step 7, my port number seems to be wrong even though i have changed it to 'port 22'.

Thanks!!

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: Reverse SSH Tunneling

Tue Nov 18, 2014 2:19 am

Most importantly of all, what are you trying to achieve?
What is the overall goal? What would count as success?

AFAICT, that's completely missing in all posts so far.
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

RPiScrub
Posts: 9
Joined: Tue Nov 11, 2014 8:15 am

Re: Reverse SSH Tunneling

Tue Nov 18, 2014 7:31 am

Joe Schmoe wrote:Most importantly of all, what are you trying to achieve?
What is the overall goal? What would count as success?
AFAICT, that's completely missing in all posts so far.
Hi,

What i am trying to achieve is to control my laptop which is placed at home using my raspberry pi at work. I am trying to create a reverse SSH tunneling to bypass the router or firewall.

I have no experience or whatsoever in this field, i heard this from a friend who said that reverse SSH tunneling would solve the problem.

Thanks!

User avatar
RaTTuS
Posts: 10559
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Reverse SSH Tunneling

Tue Nov 18, 2014 9:48 am

RPiScrub wrote:
Joe Schmoe wrote:Most importantly of all, what are you trying to achieve?
What is the overall goal? What would count as success?
AFAICT, that's completely missing in all posts so far.
Hi,

What i am trying to achieve is to control my laptop which is placed at home using my raspberry pi at work. I am trying to create a reverse SSH tunneling to bypass the router or firewall.

I have no experience or whatsoever in this field, i heard this from a friend who said that reverse SSH tunneling would solve the problem.

Thanks!
which router are you trying to bypass - home or work ?
what exactly are you wanting to do on your laptop from work
control how ?
what os is your laptop running
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

RPiScrub
Posts: 9
Joined: Tue Nov 11, 2014 8:15 am

Re: Reverse SSH Tunneling

Wed Nov 19, 2014 1:38 am

RaTTuS wrote:
RPiScrub wrote:
Joe Schmoe wrote:Most importantly of all, what are you trying to achieve?
What is the overall goal? What would count as success?
AFAICT, that's completely missing in all posts so far.
Hi,

What i am trying to achieve is to control my laptop which is placed at home using my raspberry pi at work. I am trying to create a reverse SSH tunneling to bypass the router or firewall.

I have no experience or whatsoever in this field, i heard this from a friend who said that reverse SSH tunneling would solve the problem.

Thanks!
which router are you trying to bypass - home or work ?
what exactly are you wanting to do on your laptop from work
control how ?
what os is your laptop running

The router I am trying to bypass is my work router, i want to control a monitoring system i have at home.
My laptop is running on Windows 7 Home Premium.

Thanks!

User avatar
RaTTuS
Posts: 10559
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Reverse SSH Tunneling

Wed Nov 19, 2014 9:05 am

OK ...
how are you expecting to control the app on the win 7 machine - if you where at home and not able to reach the win7 machine how you the RPi help you
if you are coming in from over the internet how would the win7 machine be controlled
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

RPiScrub
Posts: 9
Joined: Tue Nov 11, 2014 8:15 am

Re: Reverse SSH Tunneling

Wed Nov 19, 2014 9:10 am

RaTTuS wrote:OK ...
how are you expecting to control the app on the win 7 machine - if you where at home and not able to reach the win7 machine how you the RPi help you
if you are coming in from over the internet how would the win7 machine be controlled
Basically, the laptop will just run the app 24/7 and all i need is to just use the raspi to control the system through something like 'teamviewer'.

So what i need to do is to bypass the router, use my raspi to control the laptop at home through vnc or something.

But the main problem now would be how to bypass the router.

Thanks!!

Return to “Beginners”