Questions tagged [ssh-keygen]

83 questions
0
votes
1 answer

ubuntu - public-key for authentication

I have a master and slave cluster. I am setting up cloudera manager. On the master I created a passwordless key using the following. ssh-keygen -f id_rsa -t rsa -N '' eval `ssh-agent` ssh-add ~/.ssh/id_rsa I then placed the key on all slaves. …
Tampa
  • 338
  • 2
  • 8
  • 17
0
votes
3 answers

rsync without password, none of google (server fault) tutorials worked

I need to use rsync for a daily backup operation and in the past (on different servers) I managed to just use a rsa key etc, but now none of google (serverfault) tutorials work at all. It keeps asking me for a password. I have webmin and ssh/root…
0
votes
2 answers

Remote host making strange request. Am I safe?

I am starting work for an organization on their server. They need to allow connections from my server in order to use GIT over SSH. They asked me to place this in my SSH directory: SHORTNAME=abcdef FULLNAME=12.34.56.789 PORT=9999 ssh-keygen -t rsa…
Michael Ecklund
  • 251
  • 2
  • 5
  • 13
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
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
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

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

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/my_key.pub I only get the algorithm ssh-ed25519 and an…
medic17
  • 101
  • 1
0
votes
2 answers

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 PATH_TO_PUBLIC_KEY When I do this, ssh-keygen…
0
votes
0 answers

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 boot integrity check. so I use this to solve un…
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

If I setup a 'Passwordless SSH connection' as root user, will it be applied to all other users on the server?

I'm new to the concept of SSH & password-less authentication. I'm trying to setup password-less SSH connection between two servers A & B, using SSH-keygen. If I generate the keys on "Server A" as "root" user, can all the other users on "SERVER A"…
Kurk
  • 1
0
votes
2 answers

No such file or directory when trying to create .ssh keys

When I attempt to create ssh keys on my Debian instance : ssh-keygen -f /home/serverkeys/.ssh/id_rsa I am getting the error : Saving key "/home/serverkeys/.ssh/id_rsa" failed: No such file or directory I am using root user and when I check…
Golide
  • 123
  • 1
  • 2
  • 10
0
votes
1 answer

DigitalOcean Droplet ssh to use a named key

It's been a while since I've done this and configured ssh keys. I generated an ssh key with a different file name than id_rsa I have a DigitalOcean Droplet where I placed a named ssh key pair on creation. Then I created a ~/.ssh/config on my local…
Kyle Calica-St
  • 103
  • 1
  • 6