Skip to content

Instantly share code, notes, and snippets.

@sholloway
Created April 13, 2012 21:03
Show Gist options
  • Save sholloway/2380184 to your computer and use it in GitHub Desktop.
Save sholloway/2380184 to your computer and use it in GitHub Desktop.
Setting up sshd on Ubuntu
#create a gist
#setting up sshd on Ubuntu 10.10
sudo apt-get install openssh-client openssh-server
# create the keys
sudo ssh-keygen -b 1024 -t rsa1 -f /etc/ssh/ssh_host_rsa_key -N ""
sudo ssh-keygen -b 1024 -t dsa -f /etc/ssh/ssh_host_dsa_key -N ""
sudo ssh-keygen -b 521 -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N ""
#give permissions to the key files
sudo chmod 700 -R /etc/ssh
#start it up with debugging
sudo /usr/sbin/sshd -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment