Last active
February 2, 2017 07:19
-
-
Save harsha-y/5061a1c560b7fadc39672b2c7d094a5d to your computer and use it in GitHub Desktop.
SSH
This file contains hidden or 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
# 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