How do I resolve OpenSSH protocol mismatch? [closed]

I'm trying to connect to an SSH server running on port 443.

I can SSH into my devbox on Port 443:

ssh -L 8080:devbox:443 root@devbox -p 443

But I can't actually get the devbox to load in my browser. When I go to localhost:8080 I get the following error:

SSH-2.0-OpenSSH_4.3
Protocol mismatch.

When I ssh -V I get the following:

devbox: OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008

local machine: OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011

I'm assuming that this difference is what's causing the protocol mismatch. Can anyone suggest how to resolve the mismatch?


Solution 1:

Thats..... strange, You're creating an ssh tunnel to port 443 on the remote machine (devbox) but you've clearly got sshd listening on port 443 (Which is https by default), so when you point your browser at localhost:8080, you understandably get the sshd server Whats more, its pretty impossible for you to have a webserver listening on port 443, given thats what sshd is listening on.

Perhaps you meant this:

ssh -L 8080:devbox:80 root@devbox -p 443