View previous topic :: View next topic |
Author |
Message |
undofen n00b

Joined: 13 Jan 2005 Posts: 16
|
Posted: Sat Aug 13, 2005 10:03 pm Post subject: [solved] ssh without external ip or port forwarding |
|
|
The situation is as follows, I've set up a gentoo system for a non linux (yet) person, so obiously he can't do anything above whats linked on his desktop. I need ssh access to the computer to update/alter the system, problem is in the subject - no access from outside. Is there any way I can have ssh access to that computer ? I can tell that person through some IM to ssh to my computer - can I use this anyhow backwards ? Any suggestions welcome, I really need to have ssh access to that computer or the person will switch back to windblows . Oh and lets just say that obtaining a external ip and/or some port forwarded to that computer ain't an option.
Last edited by undofen on Sun Aug 14, 2005 4:44 pm; edited 1 time in total |
|
Back to top |
|
 |
Rosjahh Apprentice


Joined: 16 Jan 2003 Posts: 182 Location: Below sealevel
|
Posted: Sat Aug 13, 2005 10:59 pm Post subject: |
|
|
No idea if you can ssh backwards or something.
I assume the person you're helping is on dialup, and the reason that you consider it impossible to obtain his/her ip, is that he/she is not skillfull enough to look his/her ip up in a console?
It's maybe not what you asked for, but you could just setup an no-ip ar dyndns domainname alias. Requires nu maintenance, and starts up automatically at boot. |
|
Back to top |
|
 |
widan Veteran


Joined: 07 Jun 2005 Posts: 1512 Location: Paris, France
|
Posted: Sat Aug 13, 2005 11:15 pm Post subject: Re: ssh without external ip or port forwarding |
|
|
undofen wrote: | I can tell that person through some IM to ssh to my computer - can I use this anyhow backwards ? |
Tell him to run that:
Code: | ssh -R 10000:localhost:ssh someuser@your-machine |
It will create a tunnel from port 10000 on your machine to port 22 on his machine. Then run:
Code: | ssh -p 10000 remoteuser@localhost |
That will connect to local port 10000, which is forwarded to remote port 22, so you connect to the sshd on his machine. |
|
Back to top |
|
 |
undofen n00b

Joined: 13 Jan 2005 Posts: 16
|
Posted: Sun Aug 14, 2005 4:44 pm Post subject: |
|
|
Thank u very much!! thats exactly what I needed! The problem was not a dial-up connection, the persons internet provider just didnt offer external ip's nor port forwarding. |
|
Back to top |
|
 |
|