Aug 8, 2024
ssh user@hostnamessh-keygen
~/.ssh/id_rsaid_rsa.pub~/.ssh/authorized_keys file.ssh [email protected]ls to list filescd to change directoriesmkdir to create directoriestouch to create filesrm -rf to remove files/directories.sudo apt install apache2 -yadduser usernameusermod -aG sudo username~/.ssh/authorized_keys for each user..ssh directory if necessary.
sudo chown -R username:username /home/username/.sshssh-keygen -t rsa -f ~/.ssh/id_rsa_githubscp command.eval $(ssh-agent -s).ssh-add ~/.ssh/id_rsa_github.