Questions pertaining to key authentication, a type of authentication that may be used as an alternative to password authentication. Instead of requiring a user's password, it is possible to confirm the client's identity by using asymmetric cryptography algorithms, with public and private keys.
Questions tagged [key-authentication]
374 questions
717
votes
29 answers
Why am I still getting a password prompt with ssh with public key authentication?
I'm working from the URL I found here:
http://web.archive.org/web/20160404025901/http://jaybyjayfresh.com/2009/02/04/logging-in-without-a-password-certificates-ssh/
My ssh client is Ubuntu 64 bit 11.10 desktop and my server is Centos 6.2 64 bit. I…
Thom
- 7,735
- 4
- 18
- 16
662
votes
11 answers
How to force ssh client to use only password auth?
If I use pubkey auth from e.g.: an Ubuntu 11.04 how can I set the ssh client to use only password auth to a server? (just needed because of testing passwords on a server, where I default log in with key)
I found a way:
mv ~/.ssh/id_rsa…
LanceBaynes
- 39,295
- 97
- 250
- 349
414
votes
2 answers
How to list keys added to ssh-agent with ssh-add?
How and where can I check what keys have been added with ssh-add to my ssh-agent?
Patryk
- 13,556
- 22
- 53
- 61
295
votes
6 answers
How to avoid being asked passphrase each time I push to Bitbucket
I set up my ssh stuff with the help of this guide, and it used to work well (I could run hg push without being asked for a passphrase). What could have happened between then and now, considering that I'm still using the same home directory.
$ cat…
tshepang
- 64,472
- 86
- 223
- 290
257
votes
4 answers
How to enable diffie-hellman-group1-sha1 key exchange on Debian 8.0?
I am unable to ssh to a server that asks for a diffie-hellman-group1-sha1 key exchange method:
ssh 123.123.123.123
Unable to negotiate with 123.123.123.123 port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
How…
j1088099.mvrht.com.
- 2,903
- 3
- 13
- 20
120
votes
13 answers
ssh_exchange_identification: Connection closed by remote host (not using hosts.deny)
I'm not using hosts.allow or hosts.deny, furthermore SSH works from my windows-machine (same laptop, different hard drive) but not my Linux machine.
ssh -vvv root@host -p port gives:
OpenSSH_6.6, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading…
Torxed
- 3,567
- 7
- 27
- 44
115
votes
7 answers
how to avoid ssh asking permission?
We are attempting to speed up the installation of oracle nodes for RAC installation.
this requires that we get ssh installed and configured so that it doesn't prompt for a password.
The problem is:
On first usage, we are prompted for
RSA key…
Nicolas de Fontenay
- 4,209
- 8
- 21
- 18
100
votes
4 answers
How to specify key in SSHFS?
I've got a question that I've not been able to find an answer for. I have two computers, both of which run Ubuntu Linux 12.04. I have set up my first computer ("home") to be able to SSH into my second computer ("remote") using public/private RSA key…
J L
- 1,133
- 2
- 8
- 8
76
votes
3 answers
Server admin sent me a private key to use. Why?
I'm supposed to be accessing a server in order to link a company's staging and live servers into our deployment loop. An admin over on their side set up the two instances and then created a user on the server for us to SSH in as. This much I'm used…
Toby
- 783
- 1
- 5
- 7
73
votes
2 answers
Is there an easy way to update information in known_hosts when you know that a hosts key has changed?
If a host's operating system has been re-installed and had its public key regenerated sshing to it will of course fail because the new key doesn't match the old one.
Is there an easier way to tell ssh that you know that the host's key has changed…
Sam
- 973
- 2
- 7
- 9
65
votes
2 answers
Is it safe to give out my SSH public key for work?
I currently work remotely for a number of organizations which need me to access their servers regularly for maintenance and upgrades. Is it safe for me to add my RSA public SSH key to the .ssh/authorized_keys file to allow me to login much…
Naftuli Kay
- 38,686
- 85
- 220
- 311
59
votes
1 answer
Specifying an IdentityFile with SSH
I am trying to make a more streamlined means to establish an SSH client connection to a remote server. I have created a public/private keypair and used ssh-copy-id to install the public key onto the remote server.
However, it still was asking for…
Troy
- 691
- 1
- 5
- 3
49
votes
15 answers
SSH public key won't send to server
I've been struggling with this for a couple hours so any help is greatly appreciated...
I have 2x servers both of which I can ssh to with public keys from OSX, no issues at all there so I'm certain everything is good with sshd_config.
I'm trying to…
Danny
- 592
- 1
- 4
- 8
40
votes
1 answer
openssh: Have ssh add keys to agent as needed
When I ssh into a server and my key isn't loaded in the agent, I have to abort, then run ssh-add to get my key into the agent. I'd like the ssh command to add the key automatically if it isn't present, though. Is this possible?
enigmaticPhysicist
- 1,333
- 1
- 11
- 17
33
votes
4 answers
SSH asking for passphrase on public key with no passphrase set
I have been using public key authentication on my servers for a while now, but I am experiencing issues on a new 'client' trying to connect to github. I have read many threads to verify that my permissions are set up correctly and have generated a…
earthmeLon
- 1,150
- 1
- 8
- 17