[clug] Why is my SSH port forwarding failing all of a sudden?

Tony Lewis tony at lewistribe.com
Tue Feb 2 02:15:40 UTC 2016



On 2/02/2016 12:12 PM, Chris Smart wrote:
> On 01/02/16 21:46, Tony Lewis wrote:
>> Any clues?
> So you can ssh into the box without forwarding, or you can't even ssh
> into the box?
Yes I can SSH directly into the box, both from the intermediate host, 
and from the source (when I am plugged into the network).

>
> Have you tried to connect with debug messages to see any errors?
>
> ssh -vv remote_server_ip

Yes.  The error message implies the peer is at fault:

$ ssh -vv user at remotehost
OpenSSH_7.1p2, OpenSSL 1.0.2f  28 Jan 2016
debug1: Reading configuration data /home/Tony/.ssh/config
debug1: /home/Tony/.ssh/config line 1: Applying options for *
debug1: /home/Tony/.ssh/config line 27: Applying options for remotehost
debug2: ssh_connect: needpriv 0
debug1: Connecting to localhost [::1] port 55554.
debug1: Connection established.
debug1: identity file /home/Tony/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /home/Tony/.ssh/id_rsa-cert type -1
debug1: identity file /home/Tony/.ssh/id_dsa type 2
debug1: key_load_public: No such file or directory
debug1: identity file /home/Tony/.ssh/id_dsa-cert type -1
debug1: identity file /home/Tony/.ssh/id_ecdsa type 3
debug1: key_load_public: No such file or directory
debug1: identity file /home/Tony/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/Tony/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/Tony/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.1
ssh_exchange_identification: read: Connection reset by peer

Thanks, Chris

Tony




More information about the linux mailing list