Bastion Setup
-
Create an instance. I have used Ubuntu 20.04 for the following steps
-
Connect to your instance
-
Disable short module
awk '$5 >= 3071' /etc/ssh/moduli > /etc/ssh/moduli.tmp && mv /etc/ssh/moduli.tmp /etc/ssh/moduli`
-
Configure
/etc/ssh/sshd_config
and add the following lines: