Let's assume the following hosts:
localhost : my laptop remoteserver : a server with a public IP which runs a SSH server on port 22. (remoteserver ip for example 22.214.171.124) private.remoteserver ssh on port 2255: a server with a private IP which is only accessible from remoteserver. (private.remoteserver ip for example 126.96.36.199
I want to create ssh tunnel that I can connect to private.remoteserver from my laptop threw remoteserver
I tryed this
ssh -L 2255:188.8.131.52:2255 firstname.lastname@example.org and then from laptop ssh localhost:2255
but does not work. What I am doing wrong?