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

"Half" ssh authorization to a server with git repository

Currently I have purchased web hosting with ssh access. I have created a git repository on it and if I set my public key in ~/.ssh/authorized_keys file, I have access to that repo, I can push/pull data, etc. This solution allows access for every…
hsz
  • 259
  • 2
  • 7
2
votes
1 answer

How to configure Centos 5.3 using OpenLDAP to store and serve SSH public keys?

I want to be able to manage all my users logins via OpenLDAP. I am using Centos 5.3, OpenSSH 4.3p2-42 and OpenLDAP 2.3.43. I have installed GOsa2. Is there a GOsa plugin to manage the SSH keys in LDAP? I came across the openssh-lpk patch but it…
user35861
2
votes
4 answers

SSH configuration, publickeys, Permission denied (publickey,password). error

My task: login from Mac OS Snow Leopard client to Ubuntu 10.10 server without password. Commands: client$ mkdir ~/.ssh client$ chmod 700 ~/.ssh client$ ssh-keygen -q -f ~/.ssh/id_rsa -t rsa Enter passphrase (empty for no passphrase):…
2
votes
2 answers

Why I can not ssh to my Vagrant host? vagrant@192.168.1.8: Permission denied (publickey)

I created 5 VMs for my project vagrant status Current machine states: master-1 running (virtualbox) master-2 running (virtualbox) master-3 running (virtualbox) node-1 running…
MikiBelavista
  • 333
  • 2
  • 5
  • 12
2
votes
2 answers

Avoid SSH AgentForwarding of incompatible keys

Good morning, I have one ed25519-sk key (using a hardware token), which I need only on my personal machine for some high security servers (all Debian). This key type is supported by OpenSSH 8.3+. We still have two machines running RHEL 7 which…
Powerriegel
  • 385
  • 1
  • 6
  • 16
2
votes
1 answer

Use OpenSSH to make a key exchange with NTRU Prime

I would like to make a key exchange for a symmetric key from the client to the server with the NTRU Prime algorithm (for test reasons). I already installed OpenSSH 9.1 on both sides and checked already if everything is working (connection, key…
bilaljo
  • 123
  • 4
2
votes
1 answer

SSH2 fails authentication with a working key converted with PuttyGen (due to deprecated ssh-rsa?)

I have an EC2 instance authenticated with a key-pair generated by AWS. With Putty, I can connect to the instance by providing the private key in a PPK file. When I try to use SSH2 (via one of the NodeJs wrappers, e.g. through the 'ssh2-sftp-client'…
sebf
  • 123
  • 5
2
votes
1 answer

What does warning `client_input_hostkeys: received duplicated ssh-ed25519 host key` mean?

When I use scp to copy some files from a server, I've lately been getting the following warning: $ scp -rC myserver.com:~/test.log . client_input_hostkeys: received duplicated ssh-ed25519 host key I tried googling what this means and how to fix it…
2
votes
0 answers

kex_exchange_identification: Connection closed by remote host

Trying to connect to web servers running on Centos 7 via jump server, earlier this connection used to work fine without any problems, but not sure now what went wrong. Following is the status $ ssh -vvv abc@JUMP_SERVER_IP -J 10.10.0.5 -i…
2
votes
2 answers

Password security of encrypted SSH private key: How to read round number or costfactor of bcrypt

Here https://security.stackexchange.com/a/52564 you can read that newer OpenSSH versions use bcrypt for protecting the keyfile. Security of bcrypt depends on the costfactor see…
Hannes
  • 307
  • 2
  • 12
2
votes
0 answers

AWS SSH Login continues to fail even with new EC2 instance [Permission denied (PublicKey)]

I just started working with AWS to create a wordpress site on an EC2 instance (using the tutorial at https://www.youtube.com/watch?v=4WR7EFFLF04). Everything was working fine until I tried to add an SSL certificate using another tutorial (I can't…
2
votes
3 answers

Lost ssh access to Google Cloud VM

I have a VM (Debian) running on Google Cloud Platform, but I can't connect via ssh or serial console (can't create an user via startup-script for some reason). Already tried a bunch of troubleshooting guides in order to fix it. I was using the ssh…
2
votes
1 answer

Why does ssh login as an AD user with private key in nfs4 /home succeed on the second attempt?

I configured my up-to-date Debian (v10.5) Server with samba, winbind, sssd, krb5 and nfs-common to authenticate against an AD in my domain and mount its /home via nfs4. On the client side (windows with putty, ssh from linux) i have my private key in…
2
votes
0 answers

How to change the Amaon Linux test page on AWS Instance?

I'm pretty new to the AWS. I have created my AWS Instance and installed httpd service on it. Now, when I start httpd and open that webpage, I can see that it is running perfectly. I want to change that webpage to something else which is saved as…
Srinivas V
  • 21
  • 2
2
votes
1 answer

How can I use different ssh keys for user1@host and user2@host, without resorting to aliased hostnames?

I have a remote CentOS server, lets pretend it's called hostname.com hostname.com has several user accounts, and I want to ssh into this server as any one of these users (using ssh keys rather than password). It seems everyone recommends just…
carpii
  • 541
  • 2
  • 4
  • 12