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

What is the maximum number of private keys you can use via SSH Agent (Pageant)

While answering Re-using SSH keys I had a question of my own, is there a limit to the number of ssh keys you can hold in ssh agents? (and/or putty pageant). (as a test, I loaded 10 keys into my pageant and didn't seem to have an issue)
Jacob Evans
  • 7,886
  • 3
  • 29
  • 57
4
votes
1 answer

Possible to ssh into a server without using -i flag for key?

I have 3 EC2 instances and they all use the same private key. I'm setting up a hadoop cluster between these nodes and they require passwordless entry for this to work. How can I use this private key to easily ssh into the servers with keyless entry?…
coderkid
  • 193
  • 1
  • 5
4
votes
1 answer

ssh "incorrect signature" while connecting to server

I have a server that I usually connect to from multiple laptops, some FC22, FC23, or ubuntu. I installed a brand new laptop FC23, added the relevant keys in authorized_keys, etc: [mathieu@xps13 code]$ ssh -vvv root@ovh6 OpenSSH_7.2p2, OpenSSL…
mathieu
  • 213
  • 1
  • 2
  • 9
4
votes
1 answer

Why won't my SSH keys forward properly?

I'm trying to ssh from my machine to another machine and from there to a third machine. When I do it manually, it works like this: localhost$ scp ~/.ssh/id_rsa myuser@myhost.something.something.com:. localhost$ ssh…
Saqib Ali
  • 559
  • 1
  • 9
  • 18
4
votes
1 answer

How many SSH private key to setup for multiple servers?

The general process is to generate a pair of public and private keys and upload the public key to the server for SSH connection. Then, if I have to manage a large amount of servers, am I supposed to: Reuse that public key for all…
Shiji.J
  • 186
  • 9
4
votes
1 answer

generating ssh-keys for a non root user with salt

I need to generate ssh-keys(public/private pair) for a user say helen. This user is already in all my salt minions. How do I generate ssh keys for this user from my salt master? For root user I generated the keys using this command and it worked…
Ajo Augustine
  • 1,262
  • 4
  • 16
  • 21
4
votes
2 answers

Add remote host to known_hosts file without prompt

I wrote some scripts and wish to add a remote host to my known_hosts file without any interaction. I can run a command like ssh -o "StrictHostKeyChecking no" root@10.x.x.x which will add the remote host key to my known hosts, but it will be followed…
VenomFangs
  • 647
  • 2
  • 7
  • 10
4
votes
1 answer

Fabric used to work with ssh-keys, but not anymore

I have my ssh key set up correctly and I can ssh into the remote machine without password. However, my fabric deploy script which could authenticate automatically until a couple of hours ago, started to ask me for my private key passphrase whenever…
lolski
  • 171
  • 1
  • 6
4
votes
1 answer

SSH authentication mode selection

I am trying to figure out the SSH mechanism used while I try to ssh onto a production host. I see that the SSH client can choose among the available modes. But I'm not sure which mode is chosen and how. The SSHServer side sshd_config is configured…
broun
  • 187
  • 2
  • 2
  • 8
4
votes
2 answers

SSH authentication between my VPS and Bitbucket fail

I'm trying to setup SSH authentication between my VPS and Bitbucket for configure later automatic deployment via Capistrano (for web projects) and Capifony (for Symfony2 projects) so I follow this steps: Login in my VPS as root and execude the…
ReynierPM
  • 710
  • 5
  • 14
  • 30
4
votes
2 answers

SSH key and ip address

A co-worker keeps mentioning SSH keys being associates with an IP address but Im not sure what it exactly means. So i tried generating a SSH key and it had my host name at the end of the file. This discussion can up when we were talking about…
broun
  • 187
  • 2
  • 2
  • 8
4
votes
1 answer

Change ssh ControlPath with host-specific declaration

I have a situation where I need to access the same SSH host (GitHub) with two different SSH keys. This is no problem and I can set it up easily by aliasing the hostname. The problem comes when this configuration is combined with my SSH…
petrsnd
  • 168
  • 1
  • 7
4
votes
2 answers

Create an SSH tunnel with authentication keys - Syntax

I have to create an SSH tunnel to connect a deployment server to an VPN: DeploymentServer --> Gateway --> PrivateServer Each machine using a key, I tried the following command: myMachine $ ssh -i GATEWAY_KEY.pem -N -L…
Guilhem Soulas
  • 251
  • 2
  • 4
  • 12
4
votes
2 answers

do SSH keys have to be unique to the service they are used for?

I just created a virtual server (or, in the language of Digital Ocean host, a 'droplet') for the first time. Digital Ocean has an instruction page about SSH keys https://www.digitalocean.com/ssh_keys tells us to check if SSH keys exist, and then it…
Michael
  • 247
  • 1
  • 3
  • 9
4
votes
1 answer

Bad owner or permissions on /root/.ssh/config

I have MASTER key under user alexus, yet whenever trying to ssh as root and/or other users on the box via sudo and getting error Bad owner or permissions on /root/.ssh/config [root@wcmisdlin02 ~]# ls -ld .ssh lrwxrwxrwx. 1 root root 17 May 14 13:00…
alexus
  • 13,112
  • 32
  • 117
  • 174