Skip to content

Instantly share code, notes, and snippets.

@ErxrilOwl
Created May 31, 2020 10:35
Show Gist options
  • Save ErxrilOwl/44e27f72d06d4dafccf024f8c5bef69b to your computer and use it in GitHub Desktop.
Save ErxrilOwl/44e27f72d06d4dafccf024f8c5bef69b to your computer and use it in GitHub Desktop.
ssh commands

Check the ssh folder

ls -a -l ~/.ssh

Generate ssh key

ssh-keygen -t rsa -b 4096 -C "<email>"
// after running this code you will be prompted for a password
// enter whatever password you want

Start ssh agent if it is not running

eval "$(ssh-agent -s)"

Add the ssh

ssh-add <path to key>/<key filename>

If it has an error saying something like Permissions 0664 for '' are too open.. Just run the ff:

 chmod 400 <key filename>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment