Skip to content

Instantly share code, notes, and snippets.

@harsha-y
Last active February 2, 2017 07:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harsha-y/5061a1c560b7fadc39672b2c7d094a5d to your computer and use it in GitHub Desktop.
Save harsha-y/5061a1c560b7fadc39672b2c7d094a5d to your computer and use it in GitHub Desktop.
SSH
# Debug - include in ~/.ssh/config
# Host github.com
# LogLevel DEBUG3
# Create a new set of RSA keys
ssh-keygen -t rsa -b 4096 -f output_filename -C "Comment"
# Generate pub key from private
ssh-keygen -y -f input_filename
# Convert OpenSSH pub key to SSH2
ssh-keygen -e -f input_filename.pub > filename.ssh2.pub
# %s - new file to verify
/usr/sbin/sshd -f %s -t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment