I’ve used very basic stuff while dealing with EC2. I’m documenting this as and when I figure out new stuff so that it’s easier for future me to find stuff that I would need.
Create a config file under ~/.ssh
(tab on second line is important)
Host myHost HostName MyHostName User ec2-user IdentityFile ~/.ssh/identity.pem
tmux
Ctrl-b
+ D
tmux ls tmux attach -t 0
tmux kill-session -t 0
nvm use 16.15.1 // or install other versions and use
Start services. Best to use docker for everything on ec2
sudo systemctl start docker // run before doing anything docker related