ssh-keys interview questions
Top ssh-keys frequently asked interview questions
I have two accounts on Openshift platform. How can I setup my computer so that I can manage both of them with rhc
? I cannot find any relevant option in the command line arguments.
Source: (StackOverflow)
Rather than create a new SSH key pair on a vagrant box, I would like to re-use the key pair I have on my host machine, using agent forwarding. I've tried setting config.ssh.forward_agent to TRUE in the Vagrantfile, then rebooted the VM, and tried using:
vagrant ssh -- -A
...but I'm still getting prompted for a password when I try to do a git checkout. Any idea what I'm missing?
Source: (StackOverflow)
I generated a key-pair without 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 and when i rename the key, it fails.
But when I want to push my changes, it stills ask me for my Username/Password combination.
Is there a way to push without password?
Source: (StackOverflow)
I need to automate ssh-keygen -t rsa with out a password i.e. enter at the prompt. How can I do that from a shell script?
Thanks
Source: (StackOverflow)
I'm working on Ubuntu and want to use multiple private keys to connect to different servers or different portions of the same server (My uses are admin of server, admin of git, and normal git usage within the same server). I tried simply stacking the keys in the id_rsa
files to no avail.
Apparently the way to do this is use the command ssh -i <key location> login@server.com
. That is quite cumbersome.
Any suggestions as to how to go about doing this a bit easier?
Source: (StackOverflow)
I'm trying to configure GIT on my Windows XP machine, but SSH keeps creating and looking for the public/private key pair in non-sensical places, e.g. /.ssh/id_rsa
Is there a configuration file in the GIT Installation for Windows where I can switch this to my home directory, or another user defined place? By default, it offers to create new key pairs at //.ssh/id_rsa but that gives me the error "Could not create directory '//.ssh'." And when I'm able to find a directory I can create it in, GIT won't look there.
Source: (StackOverflow)
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 do the set up on a ubuntu 10.04 box hosted by linode.
What is the command I need to enter to find my current RSA key fingerprint if I am logged remotely using Putty?
Source: (StackOverflow)
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 emulate this in Linux ? I've heard of keychain but I hear that it uses a different key pair format - I don't want to change my windows keys , and it would be nice if could seamlessly connect in the same manner in both Windows and Linux.
Can anyone help ?
Source: (StackOverflow)
1: Is there a way to log in to an AWS instance without using key pairs? I want to set up a couple of sites/users on a single instance. However, I don't want to give out key pairs for clients to log in.
2: What's the easiest way to set up hosting sites/users in 1 AWS instance with different domains pointing to separate directories?
Source: (StackOverflow)
I have forgot my passphrase in Git.
How to reset this. I found two solutions on Stack Overflow. But I want to know what is the process to follow to reset it or to get it.
Source: (StackOverflow)
I've currently an old SSH key uploaded on the 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 following command without success:
$> ssh-add -D
Is there a way to completely remove a SSH key?
Source: (StackOverflow)
So, I have a host, call it rob
. I used ssh-keygen on rob
to get a public key, which I gave to github in the add a new deploy key screen for repository cheech
. Now I want to deploy chong
on rob
as well. But if I go to the add new deploy key screen for repository chong
on github, and paste in the public key I generated on rob
it says key already in use
. I thought, if they key was in use, I could clone chong
on rob
but that says permission denied.
So clearly this is more complicated than I thought and it involves having multiple keys or something. What should I do to clone chong
on rob
?
Thank you for your help.
Source: (StackOverflow)
This question already has an answer here:
GitHub Users,
I am newbie on github and have some issue with git setup.
I have 2 account with different users on github and i have setup git on my system 2 times
First /.ssh folder (as usual) (contain id_rsa which copied in first
account)
Second /.ssh/new folder (contain id_rsa which copied in
second account)
now at the time of push how can i switch between ssh key?
Because if i would like to push for second account it will use .ssh key instead of .ssh/new and gives me error.
Please make me correct if i am understood something wrong here.
Thanks.
Source: (StackOverflow)
Is there a way to check locally if you're providing the correct passphrase to an RSA key?
I recently had trouble pushing some commits to github because the push prompted for a password and then failed authentication. I verified that github had the correct public key for the id_rsa
file in my ~/.ssh
directory, and I verified that I could authenticate with Github (if you ssh git@github.com
it will tell you you authenticated but that they don't offer shell access,) so I knew the problem was on my end, not Github's.
(I should point out that at this point I simply used git format-patch
to get my commits as files, then blew away my working repository and re-cloned from Github, reapplied the patches using git am
, and pushed without any trouble, so whatever the original problem was, it's fixed.)
This left me wondering, though: how would I know if an authentication problem with a remote host was me providing the wrong passphrase to my private key, or the remote host not recognizing my key? Is there a way to do a test authentication with the private key, locally, without trying to connect to a remote host?
Source: (StackOverflow)