Skip to content

Instantly share code, notes, and snippets.

@tekton
Created June 26, 2014 18:37
Show Gist options
  • Save tekton/7068e2f235d59832b91a to your computer and use it in GitHub Desktop.
Save tekton/7068e2f235d59832b91a to your computer and use it in GitHub Desktop.
ubuntu 14.04 SSH Server Fix
#!/bin/bash
sudo ssh-keygen -b 1024 -t rsa -f /etc/ssh/ssh_host_key
sudo ssh-keygen -b 1024 -t rsa -f /etc/ssh/ssh_host_rsa_key
sudo ssh-keygen -b 1024 -t dsa -f /etc/ssh/ssh_host_dsa_key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment