Skip to main content

Questions tagged [ssh-keygen]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
16 votes
1 answer
52k views

Differences between "BEGIN RSA PRIVATE KEY" and "BEGIN OPENSSH PRIVATE KEY"

I'm trying to genereate RSA key to access some git repositories in azure with ssh. Having Ubuntu 22.04 and OpenSSL version OpenSSL 3.0.2 15 Mar 2022, I generate an RSA key like this: $ ssh-keygen -t ...
Viacheslav Shalamov's user avatar
5 votes
2 answers
32k views

How to generate rsa-sha2-256 keys using ssh-keygen utility?

I want to generate rsa-sha2-256 ssh key pair using ssh-keygen utility. Can you please share the command for the same? For ssh-rsa, it's ssh-keygen -t rsa
raman bhadauria's user avatar
4 votes
3 answers
34k views

Alternative to ssh-copy-id on windows

I want to copy an SSH public key to a remote device on Windows. I'm not using PuTTYgen rather just OpenSSH through PowerShell. I ran ssh-keygen -t rsa And it gave me a public and private key in my ....
magnetosticker's user avatar
3 votes
2 answers
1k views

How to convert OpenSSH ED25519 private key to the OpenSSH format that MySQL Workbench uses?

My OpenSSH ED25519 private key file has the following structure: -----BEGIN OPENSSH PRIVATE KEY----- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ...
Juuso Nykänen's user avatar
3 votes
1 answer
2k views

How to check version of ssh-keygen?

What command can be used in Linux to display the version of ssh-keygen? Its man page doesn't tell the version, oddly, nor does it mention any option to do it (e.g. -v or --version). Of no use is apt-...
ByteEater's user avatar
  • 213
2 votes
1 answer
3k views

Suddenly, my ssh requires a password--debug1: send_pubkey_test: no mutual signature algorithm

Went to check something on my Ubuntu server: jlouthan@siege  ~/.ssh  ssh metroplex.theologic.us ([email protected]) Password: That is odd because I have ssh keys. Troubleshooting, ...
Joseph Louthan's user avatar
2 votes
1 answer
53 views

Why does ssh-keygen -K give me a different keyhalf everytime I invoke it?

I'm just getting started using a YubiKey to manage my ssh keypairs. As far as I could gather from existing resources, ed25519-sk with ssh-keygen seems to be the most straightforward way to make that ...
Marco's user avatar
  • 115
2 votes
1 answer
39 views

Is ssh-keygen -s supposed to work with ssh-agent?

We're converting our ssh host keys to certificate-signed keys. I wanted to write a script that would use ssh-keyscan to grab all the public keys, then sign them all, and then use ansible to push the ...
thomasafine's user avatar
1 vote
0 answers
104 views

Does ssh-keygen have a command to change the setting on a public key?

Does ssh-keygen have an option for setting the values like force-command, no-port-forwarding, no-agent-forwarding on a supplied key? I am thinking of the instance, when someone sends you their public ...
vfclists's user avatar
  • 779
0 votes
1 answer
938 views

ssh-keygen -f option, with PowerShell, continues to say folder not exists despite it does

I'm using the PowerShell terminal in Windows 10. I created a folder "new_folder" in ~/.ssh mkdir ~/.ssh/new_folder Then I try to run ssh-keygen with the -f option. The documentation says &...
Alex 75's user avatar
  • 113
0 votes
0 answers
174 views

Rsync to Synology NAS with public key does not work as expected

I know that this question is asked a lot, but none of the answers could help me so far. I am trying to copy files via rsync from an ubuntu server to a Synology nas without a password prompt. I am ...
Jan T.'s user avatar
  • 21
0 votes
0 answers
172 views

FileZilla stopped using keys from ssh-agent on macOS

I recently set up SSH access to my web servers on my Mac by following GitHub's documentation for Generating a new SSH key and adding it to the ssh-agent. After that, I installed FileZilla and the ...
kataba's user avatar
  • 11
0 votes
0 answers
49 views

Why doesn't windows 10 ssh-keygen honor the -m option?

Windows 10 command line ssh-keygen -b 2048 -mPKCS8 doesn't change the .pub file created to PKCS8 (it's always the one-liner). I can do this to get the actual format output to the screen: ssh-keygen -...
user3161924's user avatar
-1 votes
2 answers
677 views

With a key pair at hand, and the private key working, how can I find the "counterpart public key" on the server and compare fingerprints?

I have the fingerprint from the remote host which is said to be its public key fingerprint according to What is a SSH key fingerprint and how is it generated?. Asking for the host fingerprint: ssh-...
questionto42's user avatar
  • 2,431
-2 votes
1 answer
174 views

Where does the command "ssh-keygen -A" generate host keys?

I tried to start sshd and saw an error message as follow. # sshd: no hostkeys available --exiting And did some search and found I need to run the command "ssh-keygen -A" to generate default ...
user1339750's user avatar
-3 votes
1 answer
448 views

Use ssh-keygen on windows machine and use it on linux machine

We have a scenario when we need to generate ssh key with ssh-keygen on a windows machine and copy it to linux instance: echo -e 'y\n' | ssh-keygen -t rsa -f /tmp/temp -N '' >/dev/null 2>&1 ...
A1001's user avatar
  • 1