Last active
July 9, 2020 11:33
-
-
Save yelizariev/4f256bc1fa56ac1375d7 to your computer and use it in GitHub Desktop.
save my ssh key
This file contains 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
# | |
su | |
# ivann + general | |
mkdir ~/.ssh | |
curl --silent https://github.com/yelizariev.keys | xargs echo -n >> ~/.ssh/authorized_keys | |
echo -ne " [email protected]\n" >> ~/.ssh/authorized_keys | |
sed -i 's/PermitRootLogin no/PermitRootLogin without-password # changed by Ivan Yelizariev from value "no"/' /etc/ssh/sshd_config | |
/etc/init.d/ssh restart | |
# SOCKS user | |
useradd -m socks | |
cd / | |
su - socks | |
mkdir ~/.ssh | |
# iledarn | |
curl --silent https://github.com/iledarn.keys | xargs echo -n >> ~/.ssh/authorized_keys | |
echo -ne " [email protected]\n" >> ~/.ssh/authorized_keys | |
# GabbasovDinar | |
curl --silent https://github.com/GabbasovDinar.keys | xargs echo -n >> ~/.ssh/authorized_keys | |
echo -ne " [email protected]\n" >> ~/.ssh/authorized_keys | |
# ilmir-k | |
curl --silent https://github.com/ilmir-k.keys | xargs echo -n >> ~/.ssh/authorized_keys | |
echo -ne " [email protected]\n" >> ~/.ssh/authorized_keys | |
# trojikman | |
curl --silent https://github.com/trojikman.keys | xargs echo -n >> ~/.ssh/authorized_keys | |
echo -ne " [email protected]\n" >> ~/.ssh/authorized_keys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment