Questions tagged [public-key]

283 questions
6
votes
1 answer

How to convert DER formatted public key file to PEM form

I need to use the PEM formatted public key for some purpose, but not finding the command which can convert DER formatted public key to PEM formatted public key. The command I have used - openssl rsa -in user_id_rsa.pub -inform DER -outform PEM…
CodeQuestor
  • 235
  • 1
  • 2
  • 6
6
votes
2 answers

OpenSSH and PAM authentication using a public key

I'm looking for a way to authenticate users using a public key which is stored in a db (MongoDB). Similar questions usually resulted with a suggestion to installed a patched version of OpenSSH (https://github.com/wuputahllc/openssh-for-git) which…
Gilad Novik
  • 307
  • 2
  • 3
  • 10
6
votes
1 answer

How to enable key forwarding with ssh-agent?

I've used the ssh-agent from oh-my-zsh to manage my SSH key. So far, so good, i only have to type the passphrase for my private key once when I start my shell and public key authentication works great. The problem is however that key forwarding…
Lamnk
  • 1,095
  • 3
  • 11
  • 17
6
votes
2 answers

How to set up SSH passwordless key authentication for remote access only, allowing local users to use passwords

I am trying to get an SSH server running Ubuntu 10.04 to allow password logons only when coming from the local network. For all other users, especially those logging in from the internet via the firewall, I want to force Key based authentication. …
senorsmile
  • 713
  • 8
  • 20
6
votes
5 answers

Problem using a public key when connecting to a SSH server running on Cygwin

We have installed Cygwin on a Windows Server 2008 Standard server and it working pretty well. Unfortunately we still have a big problem. We want to connect using a public key through SSH which doesn't work. It always falls back to using password…
Deleted
  • 1,832
  • 8
  • 23
  • 31
5
votes
1 answer

How to export private key? (GnuPG)

I have successfully created GnuPG public/private key pair using RSA and RSA algorithm. How can I export a public key and private key in the form of file with the .asc extension?
rancho
  • 181
  • 1
  • 1
  • 4
5
votes
1 answer

What is the purpose of a custom Certificate Trust List?

You can create and deploy a certificate trust list as detailed here, but I'm trying to understand the advantages of this over just deploying root and intermediate certs with group policy the normal way. Why would I want\need to do this?
red888
  • 4,183
  • 18
  • 64
  • 111
5
votes
6 answers

SSH public key login fails without pattern

(previously posted at stackoverflow by error) I'm running a bunch of servers with Ubuntu 14.04.1 (sun,hyperion,...) all of which use public keys (OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014 on all machines) for rsync without problems. Almost all... One…
St. Hermes
  • 81
  • 1
  • 7
5
votes
2 answers

New server won't accept SSH public key

I have a private network that had 3 servers before. Now that I added a fourth, I tried to set up public key authentication from the main entry point to this new server. However, the usual procedure doesn't work, for some reason. I've generated…
onik
  • 997
  • 3
  • 7
  • 20
5
votes
1 answer

How to configure public-key authentication with vsftpd?

The documentation of vsftpd is quite good (https://security.appspot.com/vsftpd/vsftpd_conf.html), however I cannot find some details on how to use public key authentication. I know that I need require_cert and maybe validate_cert, but where do I put…
Arne
  • 163
  • 1
  • 1
  • 6
5
votes
3 answers

PGP: on the web, what if everything was tampered?

I am trying to wrap my head around how Public Key Cryptography can really work in a secure manner. From what I can gather, you go to example.com and download their PGP/GPG Public Key and add it to your keyring. They then send you a text file (or…
Ken R.
  • 63
  • 2
5
votes
4 answers

Is it possible to connect a EC2 Linux instance via ssh without the key pair?

I can connect to my EC2 Linux instance via ssh using the key pair (*.pem). Is it somehow possible to connect it with ssh with out the pem file?
Jan Deinhard
  • 2,383
  • 5
  • 26
  • 33
4
votes
2 answers

SSH Jump Host WITHOUT Agent Forwarding

Although a simple question, I have searched for days without success. M = My machine J = Jump Host S = Server Jump Host has my public key on authorized_keys. Server has J's public key on authorized_keys. Allowed connections (due to key…
cmf
  • 143
  • 1
  • 5
4
votes
0 answers

Delegate SSH USERAUTH traffic based on user name

I want to do delegate pubkey-based authentication for a given user to a different SSH server, without modifying client configuration but allowing modifications to server software. There are several similar questions already. This and this ask for…
MvG
  • 1,813
  • 15
  • 18
4
votes
1 answer

Why won't my SSH keys forward properly?

I'm trying to ssh from my machine to another machine and from there to a third machine. When I do it manually, it works like this: localhost$ scp ~/.ssh/id_rsa myuser@myhost.something.something.com:. localhost$ ssh…
Saqib Ali
  • 559
  • 1
  • 9
  • 18