Skip to content

Instantly share code, notes, and snippets.

@Vaibhavs10
Created December 14, 2022 14:10
Show Gist options
  • Save Vaibhavs10/962335692a8b8587c81a39190954f8d6 to your computer and use it in GitHub Desktop.
Save Vaibhavs10/962335692a8b8587c81a39190954f8d6 to your computer and use it in GitHub Desktop.
user_name=
ssh_key=""
cd /home
sudo useradd -m "$user_name"
sudo mkdir /home/"$user_name"/.ssh
echo "$ssh_key" | sudo tee -a /home/"$user_name"/.ssh/authorized_keys
sudo chsh -s /usr/bin/bash "$user_name"
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
sudo apt-get install git-lfs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment