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

How to enable ssh for supporters with intelligent key management?

My situation is the following: Am having a lot of customers in a VPN network. Each supporter is having a computer which is also in the VPN. Each supporter should be able to log in into all systems via ssh. If a supporter leaves the company, he…
tollo
  • 103
  • 3
0
votes
1 answer

Why does SSH complain about key file permissions even though the key file is passwort protected?

I have a private key file, which is password protected. But when i try to use it, ssh complains about the permissions: ssh -i example.pem root@myserver @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED…
user194860
  • 101
  • 1
0
votes
1 answer

Which ssh/sshd config item will affect "Offering RSA public key"?

All servers support the ssh public key authentication only in my environment. When I read the ssh debug info, I notice the "Offering RSA public key" is different. When I ssh server1 from host1 user@host1:~$ ssh -v server1 ... debug1: Authentications…
da_miao_zi
  • 113
  • 3
0
votes
2 answers

How to use ssh-copy-id on remote server?

I have an ec2 instance which I can connect using this command with the ssh_key.pem file I have. ssh -i ssh_key.pem ec2-user@54.174.85.61 I am trying to use ssh-copy-id to add the public key I have on my local machine to remote ec2…
0
votes
1 answer

Re-use public key, private key, and authorized_keys across machines

Suppose there are two machines, A and B, both with local user account alice present. Suppose also that ~/.ssh contains the same id_ed25519, id_ed25519.pub, and authorized_keys file on both machines. Will I be able to SSH from machine A to B or from…
Ananth
  • 51
  • 1
  • 9
0
votes
1 answer

I used ssh-keyscan to automatically allow fingerprints in production environment. whether it is good

Is there is any options to revert the mentioned action. whether it will cause any security breaches?
Ajith
  • 11
  • 1
0
votes
1 answer

Increased my VM disk size on Google Cloud Platform and now the SSH log in is asking for a password?

I increased the disk size on my VM instance running on Google Cloud Platform. There was a simple change from 200 GB to 400 GB with no other changes made on the Instance. When I started the instance after making the changes and trying to login…
0
votes
0 answers

SSH to Windows server, fetching public keys from LDAP

We've got an established process where users connecting to an Ubuntu server via SSH have their public keys retrieved from our LDAP infrastructure and then PAM sets up their home directory, etc. I need to set up a standalone Windows server but the…
0
votes
1 answer

SSH Key Fingerprint Changes

So I copied an SSH private key from my Linux machine to my M1 Mac. (I've attempted to do this both by uploading the cyphertext to a secrets manager as well as directly transfering the file) but when attempting to SSH to the same machine from each I…
CRThaze
  • 151
  • 8
0
votes
1 answer

Can multiple keypairs added to an instance in aws?

Regarding to this question here "https://serverfault.com/questions/221760/multiple-public-keys-for-one-user" and many others on getting ssh access using multiple pub keys for one user, can I somehow add multiple keypairs to the authorized_keys…
0
votes
1 answer

ssh key pairs: user (public+private) AND host (public+private) OR NOT?

How many types of keys do there exist and where is the private key stored? First of all, keys can be private(=closed=decripting) and public(=open=encrypting). That's ok. That's a key pair. But further, as I can see (I am trying to study linux, and I…
Oz_
  • 1
0
votes
1 answer

SSH connection issue : How to change folder / file permissions in Windows similarly to Linux?

I have hard times connecting my local PC through SSH to another remote PC. I set the public key on both machines in the authorized_keys folder following this tutorial : https://help.ubuntu.com/community/SSH/OpenSSH/Keys but i get permission denied…
0
votes
3 answers

SSH asks for password even after i copied the public key to the remote machines

Hopefully, someone can help me resolve this nightmare. I did a project on vagrant provisioning 4 ubuntu machines, 1 controller and 3 servers. Created SSH key on controller and ssh-copy-id command to 3 server nodes. I can see the public key in…
0
votes
3 answers

How to setup ssh public key for another machine without access?

This might be a stupid question but I have to ask it anyway: I already did setup an ssh public key for my client machine A. I copied the public key to the remote server, everything works fine, I can log in from machine A. Now I also want to access…
antimatter
  • 15
  • 3
0
votes
0 answers

Disabling certain OpenSSH keys on OpenBSD: why the corresponding 'sshd_config' entries are ignored and why 'ssh-keygen -A' generates forbidden keys?

I am trying to achieve the followings on my OpenBSD 6.9 servers: Forbidding the use of all keys but the ssh-ed25519 one on both SERVER and CLIENT sides. Limiting ssh-keygen -A to generate keys only by the authorised ssh-ed25519 algorithm and…
Tony
  • 11
  • 2