Questions tagged [rsa]

182 questions
92
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,164
  • 1
  • 8
  • 16
49
votes
2 answers

Best 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 is better?…
The-Q
  • 665
  • 2
  • 6
  • 7
42
votes
2 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
  • 778
  • 1
  • 9
  • 12
29
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
  • 17,668
  • 42
  • 121
  • 159
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
  • 1
  • 7
  • 13
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
  • 650
  • 1
  • 6
  • 16
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
  • 3,727
  • 6
  • 29
  • 47
17
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
  • 181
  • 1
  • 1
  • 7
16
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 [email protected] But it is not connecting. It keeps giving me the error "Permission denied (publickey,password)." I have been searching for ages and…
harnamc
  • 265
  • 1
  • 3
  • 8
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
  • 1
  • 1
  • 3
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
  • 553
  • 2
  • 7
  • 20
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
8
votes
1 answer

Audit failure 5061 after logging in to Windows 10

Logging in to Windows 10 Build 10547 I see for a split second a message box pop up. There's no time to read it as the login succeeds. In the event log I see: Audit failure 5061 with a task category of System Integrity The event directly previous…
hellyale
  • 143
  • 1
  • 2
  • 14
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…
8
votes
1 answer

Generating JWT RS256 signature with openssl

I'm trying to sign a JWT token with the RS256 algorithm using openssl. Take the following example token: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ Per RFC 7518, RS256 means the…
fstanis
  • 358
  • 3
  • 8
1
2 3
12 13