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
9
votes
1 answer

SSH How do I ignore IdentityFile not found errors?

I currently have this in my .ssh/config file: Host * AskPassGUI no IdentityFile ~/.ssh/%r@%h IdentityFile ~/.ssh/%h IdentityFile ~/.ssh/id_dsa When I ssh into a host that I don't have a key file for, login works, but I also get these errors: no…
bmacs
  • 191
  • 1
  • 8
9
votes
2 answers

SSH host key seems to be changing unexpectedly

I rolled out a new /etc/ssh/sshd_config with Puppet on an Ubuntu 12.04 test server. The config was exactly the same as the previous config, except it had removed the following line: HostKey /etc/ssh/ssh_host_ecdsa_key I noticed I was getting a lot…
Ben
  • 93
  • 1
  • 1
  • 5
9
votes
2 answers

SSH from PuTTy to Debian "authorized_keys is not a regular file" Error

I cannot connect from my Windows 7 computer using PuTTy to a newly configured Debian Squeeze server using SSH RSA key authentication. I get this error when running SSH in debug mode: User myuser authorized keys /home/myuser/.ssh/authorized_keys is…
tacotuesday
  • 1,389
  • 1
  • 16
  • 27
9
votes
1 answer

CentOS is ignoring my public key

I am trying to connect to my own CentOS server using SSH; I am able to connect fine with a password; I am trying to connect with my public key, but the server does not attempt public key authentication. I have followed all instructions on this page…
ILikeFood
  • 399
  • 1
  • 5
  • 12
9
votes
8 answers

SSH Keys Authentication keeps asking for password

Im trying to set access from ServerA(SunOS) to ServerB(Some custom Linux with Keyboard Interactive login) with SSH Keys. As a proof of concept I was able to do it between 2 virtual machines. Now in my real life scenario it isnt working. I created…
Rhyuk
  • 404
  • 2
  • 8
  • 15
9
votes
2 answers

SSH keys: why is id_rsa larger than id_rsa.pub?

My private key (~/.ssh/id_rsa) is a 1766-byte file, but my public key (~/.ssh/id_rsa.pub) is only 396 bytes in length. Why the massive difference? Is it because the private key is encrypted using AES? Isn't AES ciphertext usually around the same…
splicer
  • 193
  • 1
  • 4
8
votes
2 answers

How to view ECDSA host key of a server?

When getting a message like the following, how can I view the key of the server? $ ssh example.com Warning: the ECDSA host key for 'example' differs from the key for the IP address '10.0.0.2' Offending key for IP in…
Louis Waweru
  • 755
  • 1
  • 9
  • 29
8
votes
1 answer

Disable ssh password authentication by user

Is it possible to enable ssh password authentication for one user on a system and disable it for an other. If you add ChallengeResponseAuthentication no PasswordAuthentication no UsePAM no to /etc/ssh/sshd_config you disable it for all users Adding…
user25922
8
votes
2 answers

Ansible with SSH keys

Moving from Puppet to Ansible. Like the fact that it is agent less and SSH driven. I just setup two test VMs. One as the Ansible server (yes overkill), and the other as an example client (random Linux server). All our servers use public private key…
Atomiklan
  • 549
  • 1
  • 8
  • 16
8
votes
2 answers

Setup public key authorized SSH for non-root users

I was able to setup ssh login using public keys for root users and tried to apply the same logic for non-root users. I have tried to troubleshoot this issue in vain. I am using centos for both my local machine and remote server. Here is a gist of my…
user2887201
  • 223
  • 1
  • 2
  • 5
8
votes
2 answers

Creating SSH key on Jenkins Master - Centos Yum Install

I have installed Jenkins on a Centos VM as I am looking at replacing Bamboo, I have it all up and running by following the install instructions. That went fine, I then wanted to spin up a Slave, I created a second VM, created a user on it, created a…
djo
  • 397
  • 2
  • 4
  • 12
8
votes
3 answers

How to use PEM keys from EC2

I understand the concept of "ssh keys" to login to a server without entering a password, however, I am not understanding how/what PEM key files are to log in to EC2 instances. In the AWS console, I can generate or import a PEM key, but where/how do…
poseid
  • 559
  • 4
  • 10
  • 20
8
votes
1 answer

Allow password access for all users except root?

I want to leave the root user enabled on my servers for convenience, and the only reason people are against the idea (that I know of) is brute-force attacks on SSH. So, is there is a way in SSH to enable password access for all users except root,…
Soviero
  • 4,366
  • 8
  • 36
  • 60
8
votes
5 answers

ssh_exchange_identification: Connection closed by remote host

Firstly, I know that this question has been asked a million times, and I have read everything I can find and still cannot fix the problem. i am encountering this issue when ssh'ing in from my mac to my Ubuntu server on a fresh install of Ubuntu (I…
rick
  • 81
  • 1
  • 1
  • 2
8
votes
2 answers

What is a good and safe way of sharing ssh-keypairs?

I have a few key-pairs, that are used as authentication, to ssh into my servers on the Amazon cloud. I rotate those certificates weekly, manually. My question is, I need to share the certificates with some colleagues, a few on the LAN, and a few in…
theTuxRacer
  • 549
  • 2
  • 9
  • 22