Questions tagged [ssh-keygen]

11 questions
8
votes
1 answer

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 rsa -b 4096 Generating public/private rsa key…
2
votes
1 answer

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-cache either, as it shows the version of the whole…
ByteEater
  • 165
  • 1
  • 9
2
votes
1 answer

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, I generated a new set of RSA keys.…
1
vote
2 answers

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 .ssh folder but if I try to do ssh-copy-id -i…
magnetosticker
  • 119
  • 1
  • 4
1
vote
0 answers

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 key and you want to restrict the commands the key…
vfclists
  • 791
  • 2
  • 10
  • 24
0
votes
2 answers

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

Please help trying to Generate sshkey Saving key "~/.ssh/id_rsa" failed: No such file or directory

So I have done this before, but for some reason after I factory reset my computer it fails to work. I followed directions. I first created a file named it CIS117KEY. Then opened a terminal. Per my instructions I then enter ssh-keygen -f…
0
votes
0 answers

ssh keygen failing to write public key

I'm having issues generating a rsa key pair on Windows10. I'm able to generate the private key, but fail to save the public key even though a public key shows up in the location, but it's empty size 0KB. Others have had similar issues where their…
0
votes
1 answer

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 "[-f output_keyfile]". Both ssh-keygen -t rsa -b 4096 -f…
Alex 75
  • 113
  • 4
-1
votes
2 answers

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-keygen -lf <(ssh-keyscan MY_SERVER.com…
questionto42
  • 1,861
  • 3
  • 21
  • 52
-3
votes
1 answer

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 aws --profile dev --region us-east-1 ec2-instance-connect…
A1001
  • 1