Last active
May 7, 2019 20:12
-
-
Save daniilyar/b83effc8fe72be1279a867ac673b82ee to your computer and use it in GitHub Desktop.
How to give me an SSH access to your Debian machine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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