Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] ssh without external ip or port forwarding
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
undofen
n00b
n00b


Joined: 13 Jan 2005
Posts: 16

PostPosted: Sat Aug 13, 2005 10:03 pm    Post subject: [solved] ssh without external ip or port forwarding Reply with quote

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
View user's profile Send private message
Rosjahh
Apprentice
Apprentice


Joined: 16 Jan 2003
Posts: 182
Location: Below sealevel

PostPosted: Sat Aug 13, 2005 10:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
widan
Veteran
Veteran


Joined: 07 Jun 2005
Posts: 1512
Location: Paris, France

PostPosted: Sat Aug 13, 2005 11:15 pm    Post subject: Re: ssh without external ip or port forwarding Reply with quote

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
View user's profile Send private message
undofen
n00b
n00b


Joined: 13 Jan 2005
Posts: 16

PostPosted: Sun Aug 14, 2005 4:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum