Questions tagged [ssh-keygen]

83 questions
4
votes
2 answers

Rsync with ssh-keygen to ssh user with limited commands and specifc directory

I have two machines, local and remote. I want to back up my files and folders to the remote machine automatically, using rsync to transfer files and folders, using ssh-keygen to automatically log into the remote machine. I can do this as ssh root,…
iLinux85
  • 205
  • 1
  • 3
  • 10
3
votes
1 answer

Several ed25519 keys with the same prefix

I have created a bunch of ed25519 keys through ssh-keygen to connect to different machines I have access to. However, I noticed that all of them begin with the same, rather long prefix: AAAAC3NzaC1lZDI1NTE5A... why is that? Is it a security issue? A…
CygnusX1
  • 133
  • 3
3
votes
1 answer

Deleted authorized_keys from EC2 but still have PPK file and I'm connected

I just deleted my full ec2-user/.ssh/ folder and I want to recover the keys so I can access my EC2 server without stopping and starting it. I have on my computer a PPK file that has something like "Private-Lines" so I'm guessing it has both private…
AlfaTeK
  • 275
  • 3
  • 12
3
votes
2 answers

SSH by key incredibly slow

SSH connecting with key, from my machine suddenly got incredibly slow (~10sec!). It is not a server or DNS problem as far as I can figure out. The problem suddenly appeared after a simple apt-get install kubuntu-desktop and some minor KDE related…
NeuronQ
  • 131
  • 1
  • 5
3
votes
1 answer

Best approach to generate and use ssh key pairs

New to ServerFault, but have been on StackOverflow for a few months and loving it. I work on a daily basis on 5 servers I have been setting up for some time now. These servers are all AIX 7.1, and are quite similar, running all different…
James
  • 131
  • 2
3
votes
2 answers

When are root's SSH keys generated?

I have hosts with and without keys in /root/.ssh. I've noticed before some on screen feedback for SSH key generation on start up (first time.) But I am not sure what the catalyst is. I have looked in /root/anaconda-ks.cfg and don't see anything…
Aaron Copley
  • 12,525
  • 5
  • 47
  • 68
3
votes
3 answers

How do you manage ssh keys to add a second user?

I used this article to set up keys and a user to login to a Ubuntu server from a Windows box using Putty. I would now like to add an additional ssh user that will login from a MacBook. I used ssh-keygen to generate the local keys but I fail in…
user51776
  • 41
  • 1
  • 4
3
votes
1 answer

Adding ssh keys to a new server without having previously set up users on that server

I've setup a clean new VPS running Ubuntu 20.04 LTS with Hetzner and would like to access it via ssh. Here is what I've tried to do: I have added my public ssh key (passphrase-less) in Hetzner's online GUI. That looked something like this: ssh-rsa…
Karoh
  • 155
  • 2
  • 7
2
votes
0 answers

SSH authentication Permission denied (publickey,gssapi-keyex,gssapi-with-mic)

I'm having problem when I try to connect to a remote server using ssh with the following command: ssh -vvv -l user hostname -p XXXX I get the following result: OpenSSH_7.9p1 Debian-10+deb10u1, OpenSSL 1.1.1d 10 Sep 2019 debug1: Reading…
2
votes
2 answers

how to create status of REMOTE HOST IDENTIFICATION HAS CHANGED when performing ssh to remote machine for testing

We want to cause the status from a remote Linux machine to return "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r", "@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! …
shalom
  • 461
  • 13
  • 29
2
votes
3 answers

What can someone do with your SSH Private Key?

What exactly can someone do with my Private Key after they used my laptop to create a SSH Public Key? After reading a few websites, it looks like they can access a server pretending they are me when using their own computer. Is this right? Can they…
LWYMUFC
  • 21
  • 1
  • 2
2
votes
3 answers

Differing ssh host key in Container-Optimized OS instance

I created a Container-Optimized OS instance in the Google Cloud. When I try to connect to it via ssh from outside the ssh host key fingerprint shown differs from the output of ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub in the instance: What…
2
votes
1 answer

How to setup ssh for a couple of servers?

I'm pretty confused about how ssh really works, and I have already asked a couple of questions related to this, but I suspect I'm going in the XY-problem trap. So, what I want is this. I want to be able to login to a couple of servers from a client…
klutt
  • 167
  • 1
  • 8
2
votes
1 answer

How to fetch ssh keys from servers?

I need to login to a host via ssh, get a keyfile, close the connection and then use the key to login without password on several machines. The underlying problem is that I need to perform tests on a couple of servers via ssh. I have already…
klutt
  • 167
  • 1
  • 8
2
votes
1 answer

Changing the ssh passphrase on a private key has no effect

I had a not protected by passphrase ssh key which I use to connect with a server. Now I want to add a passphrase to the key, so I've done: ssh-keygen -p and added a new passphrase: Enter file in which the key is (/home/user/.ssh/id_rsa): Enter old…
Manolo
  • 552
  • 2
  • 8
  • 23