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
0
votes
2 answers

Multiple Servers, Multiple ssh Keys, Unique ssh keys for Infrastructure servers

Ok so I've done a bit of googling and haven't come across an answer. We have multiple servers in our environment and around 5 infrastructure servers. Then we have one server that we can ssh to all the normal servers. Now I want to create unique ssh…
davemx_5
  • 1
  • 2
0
votes
2 answers

Add multiple SSH keys to a new server

I know I can do the following to copy an SSH key ssh-copy-id user@server.com but when I deploy a new server, I need to authorize multiple SSH keys to it. Is there anyway to make life easier for authorizing multiple SSH keys?
Asim
  • 23
  • 4
0
votes
1 answer

How to run php exec for nested scripting on remote machines?

I originally asked this question stackEx, and realized it was a much better fit here. I'm trying to automate the deployment of services on a cluster of hosts from a web-server. I've evoked the php exec function earlier to run simple scripts, and…
pl3bs
  • 25
  • 3
0
votes
1 answer

Server connects without passphrase via putty but asks for passphrase from the native command line?

I am trying to connect to an EC2 instance and it has a .ppk security key. I am not an expert on server frankly and I am still try to figure things out by trail and error. I usually connect to my server by opening up the native command line in ubuntu…
Rohan
  • 135
  • 3
  • 12
0
votes
1 answer

GitLab push not possible and always results in asking for git-user password

I have a problem with GitLab. Everything is fine, but I can't push. It is asking me all the time the password of the user git. Is it a problem, that I first installed the Omnibus package and then uninstalled it, because I use Apache and this…
fibis
  • 1
  • 1
0
votes
1 answer

Is my private key safe if I use authenticaiton agent forwarding with the ssh -A option?

I love the option to connect to servers via SSH with the -A option, so I can use my private keys on the server. This lets me update git/svn repositories and connect to other servers without the need of uploading the private key to the…
The Shurrican
  • 2,240
  • 7
  • 39
  • 60
0
votes
0 answers

Enable root password on remote server

I'm playing around with ssh-with-rsa-key authorization instead of password authorization and because I'm not really clever I've locked password authorization for root(passwd -l root) on remote server. Also I've deleted my rsa key from local computer…
micgeronimo
  • 101
  • 2
0
votes
2 answers

SSH into EC2 with dynamic public IP address

Typically I set ssh aliases as follows: ssh -i ~/path/key.pem ubuntu@public-host-name.compute-x.amazonaws.com But with EC2 instances, the public-host-name changes whenever an instance is stopped and restarted. My EC2 instances are on a VPN and have…
Kyle Cureau
  • 1,537
  • 3
  • 11
  • 15
0
votes
3 answers

git private server error: "Permission denied (publickey)."

I followed the instructions here in order to set up a private git server on my Amazon EC2 instance. However, I am having problems when trying to SSH into the git account. Specifically, I get the error "Permission denied (publickey)." Here are the…
Charles
  • 67
  • 1
  • 11
0
votes
1 answer

How can i change the default ssh rsa key used?

I'm using Ubuntu and I have a few keys which i'm using to connect to remote machines. The key I created using ssh-keygen -t rsa is located in my home folder at ~/.ssh/ and called rsa_id. I have another key which is being used by the DevOps team in…
Itai Ganot
  • 10,644
  • 29
  • 93
  • 146
0
votes
2 answers

SSH config (~/.ssh/config) - advanced configuration

UPDATE: Just to confirm more about my setup in case it wasn't clear: No private keys are ever shared anywhere. (1) Human programmers using Mac each have one SSH key (in ~/.ssh/id_rsa) that they use to connect to all my BitBucket repositories (one…
user2143356
  • 157
  • 2
  • 7
0
votes
1 answer

Ssh host key verification

I have a Server behind a Port-forwarding Firewall. Server <---> Firewall <------> NAT Port 222 | -----------> VPN I can ssh per key into it from the VPN. Doing this on server: sever:~> ssh-keygen -lf…
AndreasT
  • 837
  • 2
  • 10
  • 16
0
votes
1 answer

SSH "Server refused our key" for all users except root user

I followed this tutorial and key authentication worked great for root. but when I created user xxx and added different key in authorized_keys and tried to login using putty where error was shown " Server refused our key ". I changed…
Ashwin Mekala
  • 157
  • 1
  • 2
  • 8
0
votes
1 answer

SSH not working when called by automated script

SUMMARY: My script which includes ssh runs fine from the command line but the ssh part does not work when the script is called by an an automated daemon (apcupsd). DETAIL: I've got an ESXi server and I've got a CentOS 6.5 VM on it dedicated to…
george
  • 71
  • 9
0
votes
2 answers

Are the keys created and added when launching an EC2 instance added to ~/.ssh/authorized_keys for ec2-user?

Are the keypairs created and added when launching an EC2 instance added to ~/.ssh/authorized_keys for the ec2-user ? or is there another mechanism used? If so, would the key have a name like 'master'? I'm trying to audit the public keys on various…
codecowboy
  • 1,307
  • 7
  • 18
  • 31