Meterpreter Upgrade

sessions -u <session_id>

SSH Authorized keys

If you don't have SSH access, but SSH is running check ~/.ssh/ for either the users id_rsa, or write your own public key to ~/.ssh/authorized_keys.

Spawn TTY shell

python -c 'import pty; pty.spawn("/bin/sh")'

Spawning a TTY Shell