I'm trying to ssh through multiple hosts which works with no problems like so:
ssh -t -t user1@host1 ssh -t -t -p 222 user2@host2
Now I would like to use local host for access to a third host and I do it like so:
ssh -L 2222:host3:22 -t -t user1@host1 ssh -p 222 user2@host2
Problem:
When I do ssh -p 2222 user3@localhost
nothing happens (like that the connection is timing out). Whilst ssh -t -t user1@host1 ssh -t -t -p 222 user2@host2 ssh user3@host3
works absolutely fine.