linuxBandit Level 18 β†’ Level 19

As we can see the connection is immediately closed.

We can trick it to run a command before the ssh connection closed, by typing the command after the ssh command:

Ls is not a valid ssh option, so ssh will run it after the connection started, so we can use for example /bin/bash

Here is the password. We can also use -t to tell ssh to specify a shell:

Last updated