Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Since my ISP restricts some incoming connections, I can't access remotely to my home pc.

What I'm trying to do is make a reverse ssh connection from my home's router with Tomato firmware to the office computer, so I can access remotely from the office with that open connection.

What I'm doing is running the following from the router:

ssh -R 12345:localhost:22 oUser@office

Then I leave run top open to keep the connection alive.

And from my office what I do is run the following:

ssh hUser@localhost -p 12345

but I get the following message with verbose on:

OpenSSH_5.5p1 Debian-6, OpenSSL 0.9.8o 01 Jun 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to localhost [::1] port 19999.
debug1: Connection established.
debug1: identity file /home/oUser/.ssh/id_rsa type -1
debug1: identity file /home/oUer/.ssh/id_rsa-cert type -1
debug1: identity file /home/oUser/.ssh/id_dsa type 2
debug1: Checking blacklist file /usr/share/ssh/blacklist.DSA-1024
debug1: Checking blacklist file /etc/ssh/blacklist.DSA-1024
debug1: identity file /home/oUser/.ssh/id_dsa-cert type -1
ssh_exchange_identification: Connection closed by remote host

I've password remote access enabled in Tomato's configuration, so I should be able to access without having the public key on *authorized_keys*, but I've even tried adding it and still the same.

I've done the same with my home's computer, and it does work perfectly, but it doesn't with the router.

Am I doing something wrong?

Thanks in advance.

share|improve this question
Your question is off topic for Serverfault because it doesn't appear to relate to servers/networking or desktop infrastructure in a professional environment. It may be on topic for Superuser but please search their site for similar questions that may already have the answer you're looking for. – Iain Nov 4 '12 at 15:52

closed as off topic by Michael Hampton, rnxrx, Iain Nov 4 '12 at 15:53

Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.

Browse other questions tagged or ask your own question.