Questions tagged [rsa]

183 questions
97
votes
3 answers

Do I need to have a passphrase for my SSH RSA key?

Before I started at my current job (at a small business), my office had no firewall on the network and literally nothing was ever being backed up. Now that I've signed on as a dedicated sysadmin / one-man-IT-department, I've been doing what I can to…
eckza
  • 1,214
49
votes
2 answers

Stronger encryption and signing algorithm for GnuPG: RSA/RSA or DSA/Elgamal?

I have found this relatively old question about whether RSA or DSA is the preferred algorithm for signing and encrypting with GnuPG. When using gpg --gen-key, the two relevant choices are either "RSA and RSA" or "DSA and Elgamal". Which one has a…
The-Q
  • 695
44
votes
3 answers

how can I check my rsa passphrase?

I think I've forgotten my RSA passphrase again. Is there a way to have my local command line prompt me for it so I can check if I at least what I remember it as is correct, so I don't needlessly change it? Next time I'm writing it on a post-it ;)
joachim
  • 818
31
votes
5 answers

How do I configure SSH on OS X?

I'm trying to SSH from one Mac running OS X 10.6 to another. Seems to work fine via a password, but I can't get it to use a RSA key instead. Where is the ssh configuration file on OS X and what is the command to reload SSH? Update What I'm asking is…
cwd
  • 18,788
  • 43
  • 123
  • 162
23
votes
3 answers

How do I create an RSA public\private key pair in Windows?

How do I create RSA public\private key pair file in Windows?
NotDan
  • 611
21
votes
4 answers

Error 'Permission denied (publickey,password)'

I am trying to connect to a local IP address via SSH from the terminal. The command is ssh -v user@192.168.0.2 But it is not connecting. It keeps giving me the error "Permission denied (publickey,password)." I have been searching for ages and…
harnamc
  • 315
21
votes
2 answers

Setting up ssh config file with id_rsa through tunnel

I've been struggling to set up a valid configuration to open a connection with a second machine, passing through another one, and using an id_rsa (which requests me a password) to connect to the third machine. I've asked this question in another…
Rubens
  • 670
20
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…
18
votes
1 answer

How to check if your ssh keys are in the ssh-rsa2 format?

So recently there were news of OpenSSH dropping support for SHA-1 logins and I am trying to understand which format they are referring to. Since years i've been generating keys via ssh-keygen -t rsa -b 2048. Is this the type not recommended anymore…
strudelj nudelj
  • 291
  • 1
  • 2
  • 7
18
votes
2 answers

How does OpenSSH decide which host key to use?

By default, in my current version (6.9p1), OpenSSH Server will create four types of host keys: $ ls…
IQAndreas
  • 4,337
15
votes
1 answer

Openssl pkcs8 default format gives RSA PRIVATE KEY

I'm running this command on my pc (Openssl version: 1.0.1) : openssl pkcs8 -inform DER -in file.key -passin pass:12345678a -outform PEM -out key.pem and i got this key.pem: -----BEGIN PRIVATE…
Logan
  • 151
15
votes
4 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…
12
votes
1 answer

Preventing SSH RSA host key warnings for change of key vs IP address

I have a network with DHCP enabled, and also a computer that dual boots operating systems and has different SSH keys on each (and yes, I would like to keep different keys on each rather than copying the same identity/private key to each). Because…
Adam M-W
  • 563
10
votes
2 answers

Using ssh key for connection but without -i option

I am working with serverals hosts and I do not want specify the password every time that I want to connect to any hosts. Then I have generated a key with: Enter file in which to save the key (/home/robe/.ssh/id_rsa): my_key Enter passphrase (empty…
Robert
  • 766
10
votes
7 answers

OpenSSL Convert PEM to PFX using RSA PRIVATE Key

I am attempting to use OpenSSL to Convert a PEM File and RSA Private Key to a PFX file. Here is the example command I attempted to use: openssl pkcs12 -export -out cert.pfx -inkey key.pem -in cert.pem In doing so, I receive the following error…
thxmike
  • 221
  • 1
  • 2
  • 7
1
2 3
12 13