Neat ssh things

run ssh with screen/tmux automagically
(you can pass any cmd actually):

ssh -t moo@cows tmux attach -t session
ssh -t moo@cows screen -r
ssh moo@cows "cat .bash_history"

you can also analyze traffic over ssh with wireshark
ssh moo@cows ‘tshark -f “port !22” -w -‘ | wireshark -k -i –

Login to that HTB machine you copied keys from and forgot the command for: ssh -i id_rsa moo@cows

#ssh #hack #hacking #tricks #infosec

@apiratemoo most useful post ive seen here so far