/ Linux

SSH

Settings

SSH

 StrictHostKeyChecking no

SSHD

UseDNS no

Tunnel SSH

Just one way to do this

Create tunnel

ssh -f -N -L 2222:final_target_ip_or_hostname:22 my_bastion_user@bastion.my.domain

Connect via tunnel

ssh -p 2222 final_user@localhost

Destroy tunnel (specifying port used)

kill -9 $(lsof -i:2222 -t)