Skip to content

Instantly share code, notes, and snippets.

@ilmir-k
Forked from yelizariev/install-ivann-ssh.sh
Created April 6, 2017 11:16
Show Gist options
  • Save ilmir-k/15cd3824fb7cd12a580479074e432500 to your computer and use it in GitHub Desktop.
Save ilmir-k/15cd3824fb7cd12a580479074e432500 to your computer and use it in GitHub Desktop.
save my ssh key
#
su
# ivann + general
mkdir /root/.ssh
curl --silent https://github.com/yelizariev.keys | xargs echo -n >> /root/.ssh/authorized_keys
echo -ne " yelizariev@it-projects.info\n" >> /root/.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
#
# iledarn
curl --silent https://github.com/iledarn.keys | xargs echo -n >> /root/.ssh/authorized_keys
echo -ne " nasyrov@it-projects.info\n" >> /root/.ssh/authorized_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment