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

SSH key setup for Joyent Node SmartMachine and Windows?

I just got a Joyent Node SmartMachine. I'm using Windows. My goal is to SSH in to the SmartMachine and add/install things from GitHub. The issue I'm having is that I'm unable to connect to my SmartMachine via SSH using Putty. In Putty, after I enter…
Ed Talmadge
  • 135
  • 2
  • 7
0
votes
1 answer

setting up gitosis: avoiding duplicate user keys

i'm following this guide to setting up gitosis. i run all this on the git server, including creating credentials for my user (in the git server) with the ssh-keygen -t dsa step now, from some other machine i just want to do git remote add origin…
lurscher
  • 172
  • 1
  • 3
  • 17
0
votes
1 answer

Unable to login to Amazon EC2 compute server

I am unable to login to the EC2 server. Here's the log of the connection-attempt: $ ssh -v -i ec2-key-incoleg-x002.pem ubuntu@ec2-50-16-0-207.compute-1.amazonaws.com OpenSSH_5.6p1, OpenSSL 0.9.8p 16 Nov 2010 debug1: Reading configuration data…
gvaish
  • 101
  • 2
0
votes
1 answer

multi level ssh to pull and push git repo

I recently setup gitosis . Here is the scenario. I setup gitosis on Server S1 and multiple users have logins and all their id_rsa.pub have been setup so that their commits as a user get commited to the shared repos S1 w/o password and configured for…
Sairam
  • 209
  • 1
  • 8
0
votes
4 answers

ssh-keygen problem

I have configured the ssh-key using keygen for password less authenticaton as from the following link http://rcsg-gsir.imsb-dsgi.nrc-cnrc.gc.ca/documents/internet/node31.html nO matter what i do this keeps on asking password.i have googled a lot…
Rajeev
  • 251
  • 1
  • 4
  • 10
0
votes
2 answers

How to remove all lines with the same public key from known_hosts?

Let's imagine the following scenario. I have an host key ABCDEF1234 for a given hostname, so my known_hosts file looks like this (unhashed version): example.com ssh-rsa ABCDEF1234 Now I connect to it, and hostnames resolve to 10.11.12.13 I have a…
shodanex
  • 212
  • 2
  • 9
0
votes
1 answer

Home directory, user database and key-based authentication

I want to share it NFS share with my users just like the home-directories (traditional way), but I don't want to create the users instead I want to get the server integrated with the github or google or opnsense's VPN users database and want to have…
AAB
  • 13
  • 4
0
votes
1 answer

SSH tries other keys despite specifying a key with -i option

For the same user, I have two keys on the local machine. On the remote server, both keys are in the authorized_keys file. I delete one of the keys in the authorized_keys file. I then try to ssh with the other key using the -i option. It succeeds.…
ahron
  • 365
  • 3
  • 14
0
votes
0 answers

SSH CA-signed key does not work from certain hosts

I've tried to setup CA signed ssh user keys. I got my configuration working on most clients, there seems to be problem on a few specific ones. The key verification fails and they are prompted for password. When I try to connect to the sftp user (one…
0
votes
0 answers

GCP VM instance not showing LESS keys as GCP editing instance metadata?

authorized_keys is missing AFTER I add my ssh key to an instance in GCP so then I connect via browser and authorized_keys is generated with 1. 'TWO keys'. I then click edit on instance and I see 2. 'FOUR keys' and then global ssh I see 3. 'ONE…
Dean Hiller
  • 911
  • 4
  • 15
  • 35
0
votes
2 answers

How does SSH host verification for github.com provide any value?

Running git clone git@github.com/repo.git warns me of a potential man-in-the-middle attack when GitHub change their SSH key, and that's cool. I then get the new key by running ssh-keyscan -t rsa github.com and carry on cloning the repo. Both of…
zoran119
  • 101
0
votes
0 answers

Linux server ssh connection wont authenticate my account using ssh key gen and prompts me for password

I am facing an issue in Ubuntu 22.04.2. where I am unable to SSH into a remote server using a copied public key. I have generated an SSH key pair on my local machine using a bash terminal, and I have successfully copied the public key (id_rsa.pub)…
0
votes
1 answer

What is the host key (the one from ssh connection) and how is it different from public-private key pair?

The situation is that I've had a VPS created previously. It was all set up, private-public key authentication, root login turned off, password login turned off. Everything was set up. Then this server gets destroyed and a new server gets…
michal roesler
  • 145
  • 1
  • 6
0
votes
1 answer

Permission denied (publickey) error when managing GCP machine via Ansible (running on GCP VM) despite successful SSH connection

I deployed two machines to GCP via Terraform. Let's call them control-host and target-host. I want to manage the target-host via Ansible installed on the control-host. Unfortunately, I keep getting the following error no matter what I…
0
votes
1 answer

SSH key for 2 client users to 1 server user

If this is a duplicate, I'm sorry. I have searched my case but I couldn't find the right scenario that resembles my situation, although I thought that this situation must have come up before for someone. Here we go: I have a user on my remote linux…
antimatter
  • 15
  • 3