Skip to content

Instantly share code, notes, and snippets.

@skarm61
Created December 13, 2013 10:15
Show Gist options
  • Select an option

  • Save skarm61/7942337 to your computer and use it in GitHub Desktop.

Select an option

Save skarm61/7942337 to your computer and use it in GitHub Desktop.
Ssh configuring
cat ~/.ssh/id_rsa.pub | ssh user@machine "mkdir ~/.ssh; cat >> ~/.ssh/authorized_keys"
sudo vim /etc/ssh/sshd_config
PermitRootLogin yes -> no
Port 22 -> other port
Protocol 2
sudo /etc/init.d/ssh restarts
http://help.ubuntu.ru/wiki/ssh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment