If I issue a command to set up a reverse shell:

grebwerd@bt:~$ ssh goldberd@whatever -R 10000:localhost:22.

I was wondering, when I issue this command, it connects me to grebwerd@whatever, what type of connection is being made between the two?

Is it a secure, encrypted connection?

  1. grebwerd@bt:~$ ssh grebwerd@whatever -R 10000:localhost:22

    (what type of connect exists between grebwerd@bt and grebwerd@whatever, between these two commands)

  2. grebwerd@whatever:~$ ssh grebwerd@localhost -p 10000

migrated from stackoverflow.com Oct 17 '12 at 18:41

This question came from our site for professional and enthusiast programmers.


Traffic tunneled over ssh is sent within the encrypted ssh session. Your second ssh command sets up an encrypted channel that is nested within another encrypted channel.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.