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

config file

      Hostname YOUR_REALLY_LONG_EC2_HOST_NAME

      user SOME_USERNAME

      IdentityFile PATH_TO_A_PEM_FILE

      Port 22 (this is almost always 22)`

allow permission to .ssh/config without super user mode(sudo) (for windows subsystem linux)

chmod 600 /home/<username>/.ssh/config

Generate an ssh key

ssh-keygen -t rsa -b 4096 -C "[email protected]"

https://help.github.com/en/enterprise/2.16/user/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent

Increase connection idle time

https://stackoverflow.com/questions/7210011/amazon-ec2-ssh-timeout-due-inactivity Host THE_NAME_YOU_IDENTIFY_THIS_ENTRY_BY

⚠️ **GitHub.com Fallback** ⚠️