Questions tagged [ssh-keygen]

83 questions
1
vote
0 answers

ssh-copy-id does not update authorized_keys file

I can't configure ssh key on my Synology NAS. File ~/.ssh/authorized_keys is not created or not updated. On remote machine (NAS): $ cd $ chmod 700 . $ chmod 700 .ssh $ touch .ssh/authorized_keys $ chmod 600 .ssh/authorized_keys I updated…
jootl
  • 183
  • 2
  • 6
1
vote
2 answers

Generating ssh-keys not creating key in PKCS1 format

I am attempting to create a public/private key pair using ssh-keygen. I need the key to be in PKCS1 format so that it states "BEING RSA PRIVATE KEY". No matter what I try it appears to only create in PKCS8 format. Any thoughts on what the issue…
IT_User
  • 210
  • 1
  • 3
  • 22
1
vote
1 answer

Reconnect automatically to a disconnected ssh session

I am new to this community , I am working on my iot project in which my microcontroller is working as a server, taking data and executing request. My client is end device (mobile,tablet) and I am connecting through SSH. The problem appears if…
adil kampoo
  • 11
  • 1
  • 2
1
vote
1 answer

Adding a ssh host key for a server name to `known_hosts` idempotently?

ssh-keygen -R $HOSTNAME can remove the ssh host key(s) from one's known_hosts. Can I add a specific host key (for a hostname/ip) to a known_hosts in an idempotent way? I want to script ssh'ing into a server. This might be run by someone who has not…
Amandasaurus
  • 31,471
  • 65
  • 192
  • 253
1
vote
1 answer

Using 2 key pairs simultaneously for ssh authentication

I have a ssh server running on a raspberry pi. This ssh server can only be accessed by 1 user on my ubuntu laptop only. I have created 2 pairs of ssh keys using: ssh-keygen -t ed25519 -o -a 100 ssh-keygen -t rsa -b 4096 -o -a 100 The 2 public keys…
iLW
  • 131
  • 3
0
votes
1 answer

How to adequately add identical public-private ssh key to a new client machine?

I have generated private and public key pair files (id_rsa, id_rsa.pub) using ssh-keygen command in a machine A, which is a client. I have tested my connection to server in machine A and it is working fine. Now I have copy those files using cp…
0
votes
1 answer

find ssh2 key fingerprint

How do I find the ssh fingerprint of a ssh2 key ? With a ssh-1 key I can do ssh-keygen -lf /path/to/keyfile. However when I convert the same key to a ssh2 key using ssh-keygen -e -f keyfile.pub > keyfile_ssh2 I can no longer the fingerprint using…
letsc
  • 101
  • 3
0
votes
0 answers

SSH copy key from Raspberry Pi to Linux

I am trying to create a new ssh key, and copy it to a server, using a previously generated ssh key. /usr/bin/ssh-copy-id -f -i /home/pi/.ssh/newKey -o "IdentityFile=/home/pi/bob" user@host.edu The following command is run using the rc.local (I…
Milhous
  • 133
  • 2
  • 9
0
votes
3 answers

How to have single ssh public-private key pair for a user across different servers?

I am working on standardizing different bits in our environment and as part of that would like to move towards ssh key based authentication. Currently we have individual accounts in each servers (around 150-200 of them) and thankfully we keep the…
Ram Kumar
  • 73
  • 1
  • 3
  • 8
0
votes
1 answer

Why is the same private key file generating two different public key strings?

I have an ssh key pair that was generated to use as an access key for my GoCD CI/CD server. It was working but due to some configuration changes I made (moved the server out of container to a Linux host) I needed to reinstall the keys on the Linux…
LegendaryDude
  • 244
  • 4
  • 11
0
votes
2 answers

Is SSH-KEYGEN secure, even when client machine gets hack?

Suppose there is Client - Server machine. On the Client machine, we have generated an SSH-KEYGEN and stored the same key on Server Machine. Which means, when Client connects Server using SSH, it won't require Password. If Client machine gets hack,…
Sumit Nayak
  • 101
  • 1
0
votes
1 answer

my ssh is OK,but mha ssh check is fail

CentOS 6.6 + MySQL MHA(0.56)\ ssh-keygen -t rsa ssh-copy-id -i /root/.ssh/id_rsa.pub root@slave2 and my SSH check is ok [root@master ~]# ssh -v root@slave2 OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013 debug1: Reading configuration data…
LawrenceLi
  • 101
  • 2
0
votes
1 answer

ssh-keygen key verification changed in OpenBSD 5.7, how to verify host_key?

OpenBSDs "ssh-keygen -l" output format has changed in 5.7. How to verify the host key when connecting from older ssh versions? Until OpenBSD 5.6 the host_keys fingerprint output format was like this: # ssh-keygen -lf ssh_host_ecdsa_key.pub 256…
user208383
  • 61
  • 1
  • 1
  • 6
0
votes
0 answers

Enable root password on remote server

I'm playing around with ssh-with-rsa-key authorization instead of password authorization and because I'm not really clever I've locked password authorization for root(passwd -l root) on remote server. Also I've deleted my rsa key from local computer…
micgeronimo
  • 101
  • 2
0
votes
3 answers

Passwordless SSH is not working, Mac to Linux - need suggestions

I have a server that I regularly log in to. And I have to type my password every time. I'm trying to change this... I've followed the tutorials to the letter. On the server, I used ssh-keygen to generate an id_rsa* file pair. I added the .pub to…
user2299958
  • 101
  • 1