Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [ssh-keygen]

The tag has no usage guidance.

1 vote
0 answers
44 views

File not received properly in Azure server using SFTP

I am copying a file from my z/OS Unix System Services (USS) server to a Windows server in Azure using SCP. I am able to connect with both SSH and SFTP to the Azure server on port 22 from my USS server,...
Brindha Sharadha's user avatar
2 votes
1 answer
192 views

how to handle ssh certificate based authentication from one region to another with certificate validity time?

Im trying to create an ssh certificate using keygen tool from One region(ex: india) to connect the server in another region(ex: us). Im giving the validity for the certificate as (current time) to (...
gowtham krishna's user avatar
1 vote
1 answer
268 views

Even if SSH is set up, it always asks for the password when logging into the server

I have an Ubuntu server. I use ssh to access it. It worked fine at first. When user@IP is given along with SSH key, it will log into the server without asking for password. But recently, even with SSH,...
Sachintha madhawa's user avatar
0 votes
2 answers
193 views

Why ssh-keygen & ssh-copy-id create files with incorrect permissions

I have a FreeBSD host (sh) that I just set up last week, and it is doing these two weird things that seem to be related: ssh-keygen ON this host is creating both private and pub keys with 775 file ...
jg3's user avatar
  • 189
-1 votes
1 answer
560 views

Create a pair of keys suitable for DKIM setup using ssh-keygen

Question What is the right way to create a pair of keys suitable for DKIM setup using ssh-keygen? Given the corresponding solution with openssl: # creates a private key openssl genrsa -out sample.key ...
Dmitry's user avatar
  • 117
1 vote
2 answers
1k views

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,...
shodanex's user avatar
  • 242
0 votes
2 answers
572 views

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

Running git clone [email protected]/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 ...
zoran119's user avatar
  • 101
0 votes
1 answer
5k views

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 ...
michal roesler's user avatar
1 vote
1 answer
393 views

Is it safe to ssh-keygen a "ecdsa-sk" or "ed25519-sk" in a potentially compromised environment?

I'm wondering whether it would be a good practice to make sure the keys are generated in a safe environment, like a live Linux distribution, instead of just generating them in a day-to-day environment ...
luislhl's user avatar
  • 111
0 votes
1 answer
50 views

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 ...
antimatter's user avatar
1 vote
1 answer
638 views

Validate all public keys in authorized_file

In my authorized_file i have multiple public keys against one private key. Now i want to add a task in ansible which will validate that all public keys are valid keys and good for connection. My aim ...
Sakshi Arora's user avatar
0 votes
1 answer
2k views

Create a public SSH key from the private key? Is an `ssh-ed25519` public key unrecoverable?

I want to recover my ssh public key from my private key. I am aware of this answer but it doesn't seem to work for me. When I run the command suggested ssh-keygen -f ~/.ssh/my_key -y > ~/.ssh/...
medic17's user avatar
  • 101
0 votes
2 answers
2k views

ssh-keygen unable to verify key "unknown option -- Y"

Context: I am trying to verify my public key on a Gitea instance. Gitea provides a token for me to generate a signature; The instructions say: echo -n 'TOKEN_PROVIDED' | ssh-keygen -Y sign -n gitea -f ...
Christian Galo's user avatar
0 votes
0 answers
181 views

Is there a way to repair SSH On GCP VM after shielded VM failure

I have a GCP VM on which is installed a Docker with Drupal. e2-medium with SSD 10Go After increasing the disk size to 20GB, I can no longer access the VM in SSH. My VM was failing to boot because of a ...
Kiswend's user avatar
1 vote
1 answer
708 views

I used ssh-keyscan in production environment. is it possible to revert back?

I used ssh-keyscan in production environment, after got to know it may allows MITM. I check in known_hosts files, fingerprint is not there. where can i check or is there any option?
Ajith's user avatar
  • 11

15 30 50 per page
1
2 3 4 5 6