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.