SSH Server - muhammed-ajmal/Install-Config GitHub Wiki
#> ## https://www.simplified.guide/ubuntu/install-ssh-server
sudo apt update
sudo apt install -y openssh-server
sudo systemctl status ssh
sudo systemctl start ssh
sudo systemctl disable ssh
sudo systemctl enable ssh
Hostname YOUR_REALLY_LONG_EC2_HOST_NAME
user SOME_USERNAME
IdentityFile PATH_TO_A_PEM_FILE
Port 22 (this is almost always 22)`
chmod 600 /home/<username>/.ssh/config
ssh-keygen -t rsa -b 4096 -C "[email protected]"
https://stackoverflow.com/questions/7210011/amazon-ec2-ssh-timeout-due-inactivity Host THE_NAME_YOU_IDENTIFY_THIS_ENTRY_BY