Skip to content

Instantly share code, notes, and snippets.

@yelizariev
Last active July 9, 2020 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save yelizariev/4f256bc1fa56ac1375d7 to your computer and use it in GitHub Desktop.
Save yelizariev/4f256bc1fa56ac1375d7 to your computer and use it in GitHub Desktop.
save my ssh key
#
su
# ivann + general
mkdir ~/.ssh
curl --silent https://github.com/yelizariev.keys | xargs echo -n >> ~/.ssh/authorized_keys
echo -ne " yelizariev@it-projects.info\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 " nasyrov@it-projects.info\n" >> ~/.ssh/authorized_keys
# GabbasovDinar
curl --silent https://github.com/GabbasovDinar.keys | xargs echo -n >> ~/.ssh/authorized_keys
echo -ne " gabbasov@it-projects.info\n" >> ~/.ssh/authorized_keys
# ilmir-k
curl --silent https://github.com/ilmir-k.keys | xargs echo -n >> ~/.ssh/authorized_keys
echo -ne " karamov@it-projects.info\n" >> ~/.ssh/authorized_keys
# trojikman
curl --silent https://github.com/trojikman.keys | xargs echo -n >> ~/.ssh/authorized_keys
echo -ne " trojikman@itpp.dev\n" >> ~/.ssh/authorized_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment