Created
April 13, 2012 21:03
-
-
Save sholloway/2380184 to your computer and use it in GitHub Desktop.
Setting up sshd on Ubuntu
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
#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