I have tried creating a multi-hop SSH tunnel using a command like this:
ssh -L 2222:username@host2:22 host1 -N
However, when I try to use the SSH tunnel like this
ssh -p 2222 localhost
I get this error where I run the second command
ssh_exchange_identification: Connection closed by remote host
and this error where I run the first command
channel 2: open failed: administratively prohibited: open failed
What am I doing wrong?