Questions tagged [ssh-keys]

an authorization mechanism for SSH involving public-key cryptography.

SSH keys are an authorization mechanism for SSH involving public-key cryptography. It consists of

  • A private/public key pair generated by a utility like ssh-keygen.
  • A configured (in /etc/ssh/sshd_config) SSH daemon that allows public key authentication.
  • A configured user account that has the public key copied to ~/.ssh/authorized_keys.
792 questions
4
votes
3 answers

Forgot the password for an encrypted SSH key that's in my (gnome) SSH agent. How do I extract unencrypted version?

OK, I have an encrypted ssh private key that provides access to a server. My Ubuntu GNOME desktop has an integrated graphical ssh agent (seahorse v3.2.2). That ssh key is in this ssh agent and it's automatically unlocked when I log into my desktop.…
Amandasaurus
  • 31,471
  • 65
  • 192
  • 253
4
votes
1 answer

ssh rsa key auth only occurs if I am already logged in on console

Can't figure this out - am using id_rsa key based authentication to our servers (approximately 400 Linux and UNIX servers). In this case I have 3 identical servers with 3 recent installs of Ubuntu 12.04 - svr1 svr2 svr3 for the sake of this…
user150755
  • 43
  • 2
4
votes
1 answer

ubuntu 12.10/linux mint 14 ssh-copy-id doesn't work and returns Ambiguous output redirect

I recently got a new computer and I'm trying to use ssh-copy-id to put my keys on another server so I can login without password. but when I try ssh-copy-id -i ~/.ssh/id_rsa.pub user@server and after inputting the correct password it…
Marc
  • 143
  • 1
  • 3
4
votes
2 answers

Gerrit ssh key setup on windows server

I am attempting to configure google's 'Gerrit' code review web app on a Windows server 2008 virtual machine on our internal network. We are using Apache Tomcat (6.0.36) to host the web app and have deployed the gerrit.war to tomcats webapp folder,…
hotpotato
  • 171
  • 5
4
votes
1 answer

Why does SVN+SSH prompt for password despite a SSH key file?

I have keys configured such that I can login to SVN_HOST like this: ssh @ Will log me to SVN_HOST with no password prompt. So far so good; however: svn update svn+ssh://@/ Still…
SMTF
  • 165
  • 2
  • 6
4
votes
4 answers

Wordpress can't find ssh public and private key pair

My server configuration is as follows: CentOS 5.8 (final) running Nginx. I am using the SSH2 feature of Wordpress's plugin installer. I have installed lib2ssh and it is working (Wordpress is acknowledging it exists). The user (called playwithbits)…
George Reith
  • 673
  • 2
  • 12
  • 22
4
votes
3 answers

Where should an SSH keyfile be stored to be FHS compliant?

I've been reading the FHS specification on http://www.pathname.com/fhs/pub/fhs-2.3.html to figure out where a (private) SSH keyfile should be stored that will be used for a VPS administration panel I am currently working on. This keyfile should only…
4
votes
1 answer

ssh agent authorization in a detached screen session

I have an ssh script which use ssh key forwarding on a remote system to do thing in even more remote systems. I have to run the script in a screen session so that I can detach from it. But the authorization that was granted to the remote system by…
geoaxis
  • 491
  • 1
  • 6
  • 18
4
votes
3 answers

I created an RSA key but SSH keeps asking the password

On my Mac, I created an RSA key with ssh-keygen -t rsa and saved it as .ssh/authorized_keys on the target server (Ubuntu). I put this in server's /etc/ssh/sshd_config: PubkeyAuthentication yes RSAAuthentication yes and restarted SSH. However, it…
Dan
  • 317
  • 1
  • 4
  • 13
4
votes
1 answer

How do you create an ssh key for the apache user on Redhat?

As the question asks, how do I generate an ssh key for the user apache on Redhat? My use case, is that we have a mercurial server running under the apache user. We also have several web servers clustered that we need to log on to manually and do…
Josh Smeaton
  • 1,340
  • 2
  • 19
  • 31
4
votes
6 answers

How Exactly Are SSH Keys Generated?

Saw a question on Twitter about moving the current SSH Keys to the same machine after a new installation. This raised my curiosity and I asked myself how they are made. I understand the process on generating a key and the difference between the…
jason.dot.h
  • 47
  • 1
  • 4
4
votes
3 answers

Passwordless ssh into the same machine

OK, I know the basics of how to set up passwordless ssh: create a keypair using ssh-keygen then add the public key from id_dsa.pub into the host's .ssh/authorized_keys. So for two different machines client and host, I can ssh from client into host…
ajdecon
  • 1,301
  • 4
  • 14
  • 21
4
votes
1 answer

How to validate opendkim generated RSA keys

I'm trying to diagnose OpenDKIM validation errors (see this question). Way down in the belly of the beast, I'm at the point where I'm trying to make sure the keys generated are actually correct. I'm generating my keys with opendkim-genkey -r -d…
philolegein
  • 409
  • 4
  • 12
4
votes
1 answer

Why can I access my server when I have: Warning: Identity file .ssh/key-file not accessible

Why can I still connect to my server when the keys I am using are clearly not accessible? From my PC, to connect to the server: ssh -l myLogin -i .ssh/key-file I have tried this in these 2 configurations : key-file doesn't exists on my…
Yosko
  • 167
  • 2
  • 6
3
votes
2 answers

SSH keys no longer work?

The Problem Trying to connect to my QNAP server from two different computers, which previously could connect via ssh without a password -- but now a password is asked for each time. What went wrong, and how do I fix it? What I've tried I've rooted…
Ryan de Kleer
  • 151
  • 1
  • 7