Questions tagged [ssh-keys]

SSH Keys are pairs of sequences of randomly generated bytes that provide the basis of SSH public key cryptography and challenge-response authentication. The sequences are typically stored in files and one of them is referred to as the Public key while the other is the Private key.

SSH Keys are pairs of sequences of randomly generated bytes that provide the basis of SSH public key cryptography and challenge-response authentication. The sequences are typically stored in files and one of them is referred to as the public key while the other is the private key.

SSH Keys can be generated using a number of supported algorithms:

Keys are commonly generated using the widely available ssh-keygen tool, although other forms of key generators exist.

An SSH Key can be visualized by formatting the byte sequence into ASCII art. The following is a rendering of a 521 bit ECDSA key:

+--[ECDSA  521]---+
|     ..oB=.   .  |
|    .    . . . . |
|  .  .      . +  |
| oo.o    . . =   |
|o+.+.   S . . .  |
|=.   . E         |
| o    .          |
|  .              |
|                 |
+-----------------+
1936 questions
1141
votes
21 answers

Best way to use multiple SSH private keys on one client

I want to use multiple private keys to connect to different servers or different portions of the same server (my uses are system administration of server, administration of Git, and normal Git usage within the same server). I tried simply stacking…
Justin
  • 11,483
  • 3
  • 16
  • 7
1068
votes
16 answers

Calculate RSA key fingerprint

I need to do the SSH key audit for GitHub, but I am not sure how do find my RSA key fingerprint. I originally followed a guide to generate an SSH key on Linux. What is the command I need to enter to find my current RSA key fingerprint?
Zakoff
  • 12,665
  • 5
  • 22
  • 35
1053
votes
64 answers

Git: How to solve Permission denied (publickey) error when using Git?

I'm on Mac Snow Leopard and I just installed git. I just tried git clone git@thechaw.com:cakebook.git but that gives me this error: Initialized empty Git repository in `/Users/username/Documents/cakebook/.git/` Permission denied…
teepusink
  • 27,444
  • 37
  • 107
  • 147
814
votes
33 answers

SSH Key - Still asking for password and passphrase

I've been somewhat 'putting up' with Github always asking for my username and password when I clone a repository. I want to bypass this step because it is an annoyance within my workflow. I tried setting up an SSH key (which I successfully did)…
HelloWorld
  • 10,529
  • 10
  • 31
  • 50
617
votes
7 answers

Why are connections to GitHub over SSH throwing an error "Warning: Remote Host Identification Has Changed"?

Just sometime ago I started getting this warning when pushing to GitHub. WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle…
Dheeraj Vepakomma
  • 26,870
  • 17
  • 81
  • 104
516
votes
33 answers

Git error: "Host Key Verification Failed" when connecting to remote repository

I am trying to connect to a remote Git repository that resides on my web server and clone it to my machine. I am using the following format for my command: git clone ssh://username@domain.example/repository.git This has worked fine for most of my…
bootsz
  • 5,271
  • 3
  • 13
  • 4
510
votes
10 answers

How to convert SSH keypairs generated using PuTTYgen (Windows) into key-pairs used by ssh-agent and Keychain (Linux)

I've generated key pairs using PuTTYgen and been logging in using Pageant, so that I have to enter my pass-phrase only once when my system boots. How do I achieve this in Linux? I've heard of keychain but I hear that it uses a different key pair…
TCSGrad
  • 11,898
  • 14
  • 49
  • 70
484
votes
34 answers

Using SSH keys inside docker container

I have an app that executes various fun stuff with Git (like running git clone & git push) and I'm trying to docker-ize it. I'm running into an issue though where I need to be able to add an SSH key to the container for the container 'user' to…
ebensing
  • 6,409
  • 4
  • 18
  • 20
440
votes
6 answers

How do I verify/check/test/validate my SSH passphrase?

I think I forgot the passphrase for my SSH key, but I have a hunch what it might be. How do I check if I'm right?
joachim
  • 28,554
  • 13
  • 41
  • 44
360
votes
9 answers

Push to GitHub without a password using ssh-key

I generated an SSH key pair without a password and added the public key to GitHub. Connection with user@dev:/var/www/project# ssh -T git@github.com Hi User! You've successfully authenticated, but GitHub does not provide shell access. was successful…
Sebus
  • 3,752
  • 3
  • 14
  • 22
319
votes
14 answers

Multiple GitHub Accounts & SSH Config

I'm having some trouble getting two different SSH keys/GitHub accounts to play well together. I have the following setup: Repos accessible from one account using git@github.com:accountname Repos accessible from another account using…
radesix
  • 5,834
  • 5
  • 24
  • 39
308
votes
20 answers

AWS ssh access 'Permission denied (publickey)' issue

How to connect to a AWS instance through ssh? I have: Signed up at AWS; Created a public key and a certificate at AWS website and saved them to disk; Went to my console and created environment variables: $ export…
Alex
  • 43,191
  • 44
  • 96
  • 127
305
votes
25 answers

How to solve "sign_and_send_pubkey: signing failed: agent refused operation"?

Configuring a new Digital Ocean droplet with SSH keys. When I run ssh-copy-id this is what I get: ssh-copy-id user@012.345.67.89 /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already…
user968270
  • 4,251
  • 5
  • 21
  • 20
303
votes
17 answers

Repository access denied. access via a deployment key is read-only

After successfully cloning my repo from heroku and added another remote 1/ git clone git@heroku.com:[APP].git 2/ git remote add bitbucket ssh://git@bitbucket.org/[ACCOUNT]/[REPO].git 3/ git push bitbucket master I am still getting this error after…
zabumba
  • 12,172
  • 16
  • 72
  • 129
253
votes
9 answers

How can I remove an SSH key?

I currently have an old SSH key uploaded on a server. The problem is I lost my ~/.ssh directory (with the original id_rsa and id_rsa.pub files). Consequently, I want to remove the old SSH key directly on the server and upload a new one. I tried the…
user1364743
  • 5,283
  • 6
  • 51
  • 90
1
2 3
99 100