Skip to content

Instantly share code, notes, and snippets.

@anistark
Last active February 26, 2016 07:07
Show Gist options
  • Save anistark/32c4362e7a30d976f199 to your computer and use it in GitHub Desktop.
Save anistark/32c4362e7a30d976f199 to your computer and use it in GitHub Desktop.
ssh permission granting
To check if your system/user has the permission required:
> ssh -T [email protected]
If you want detail reports:
> ssh -vT [email protected]
In case you get error as permission denied, load you ssh keys using this:
# start the ssh-agent in the background
> eval 'ssh-agent -s'
> ssh-add ~/.ssh/my_other_key
Tada, it's done. :) Go ahead and push a few more files now.
At times you might wanna do this:
For bash shell : exec ssh-agent bash
For fish shell : exec ssh-agent fish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment