Skip to content

Instantly share code, notes, and snippets.

@daniilyar
Last active May 7, 2019 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daniilyar/b83effc8fe72be1279a867ac673b82ee to your computer and use it in GitHub Desktop.
Save daniilyar/b83effc8fe72be1279a867ac673b82ee to your computer and use it in GitHub Desktop.
How to give me an SSH access to your Debian machine
sudo -i
apt-get -y install curl
useradd dyaroslavtsev -m -d /home/dyaroslavtsev -s /bin/bash
echo "dyaroslavtsev ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
mkdir -p /home/dyaroslavtsev/.ssh
curl -sL https://goo.gl/jS8729 > /home/dyaroslavtsev/.ssh/authorized_keys
chown -R dyaroslavtsev:dyaroslavtsev /home/dyaroslavtsev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment