Questions tagged [public-key]

283 questions
4
votes
1 answer

How many SSH private key to setup for multiple servers?

The general process is to generate a pair of public and private keys and upload the public key to the server for SSH connection. Then, if I have to manage a large amount of servers, am I supposed to: Reuse that public key for all…
Shiji.J
  • 186
  • 9
4
votes
2 answers

SSH key and ip address

A co-worker keeps mentioning SSH keys being associates with an IP address but Im not sure what it exactly means. So i tried generating a SSH key and it had my host name at the end of the file. This discussion can up when we were talking about…
broun
  • 187
  • 2
  • 2
  • 8
4
votes
3 answers

sshd ignores authorized_keys and keeps trying authorized_keys2

I just uploaded my public key to a server, ensured permissions are right, and when i try to log it simply refuses it. after enabling loglevel DEBUG in sshd_config i get: Nov 22 06:53:36 host-1 sshd[8612]: debug1: Forked child 8617. Nov 22 06:53:36…
gcb
  • 344
  • 1
  • 4
  • 18
4
votes
1 answer

Disallow password auth in SSH via ~/.ssh/config?

I know I'm fighting a losing battle here, but with the right bit of elbow-grease I've got my shared hosting with GoDaddy to let me SSH in via pubkey auth (added in the ~/.ssh directory and an authorized_keys file, which their support told me I…
Amazingant
  • 175
  • 6
4
votes
4 answers

SSH login without password

I know that you can use ssh-keygen to generate a public/private key pair. Then you can install the public key on a remote server. You can then login without supplying a password. I haven't been successful in setting up key-based authentication. SSH…
Mingwei Li
  • 63
  • 1
  • 1
  • 6
4
votes
1 answer

PostgreSQL SSL root.crt not loading

I am running PostgreSQL 9 on Ubuntu (from their PPA repository). I am using OpenSSL 0.9.8o. I have generated keys and certificates using TinyCA2 for both a pg server and the psql client. I essentially followed the instructions. My pg_hba.conf file…
malaverdiere
  • 173
  • 1
  • 2
  • 6
4
votes
4 answers

ssh without password does not work for some users

I have a new RHEL4 Linux box that I am using to copy data to old Solaris 2.6 and RHEL3 Linux boxes with scp. I have found that with the same setup, it works for some users but not for others. For user jane, this works fine: jane@host1$ ssh -v…
joshxdr
  • 257
  • 3
  • 15
4
votes
1 answer

Get SSH fingerprint from remote server securely?

I had thought about this and my host provides out of band support, so I could simply create the key fingerprint out of band and compare it when connecting to that server from home. Is there any other way other than out of band access where you can…
James l.
  • 55
  • 3
4
votes
4 answers

Looking for a one step solution to appending my SSH public key to a server's authorized_keys?

To get my public key onto a server I normal copy the contents of my public key, then SSH into the server, then I run vi .ssh/authorized_keys, then paste my key into the file and save. There has got to be an easier, one step way using SCP or…
Shane Stillwell
  • 337
  • 1
  • 4
  • 11
4
votes
1 answer

Authentication using SSL certificates -- General Question

SSL client authentication using certificates -- it's a complex topic, and I think I've learned just enough to make it even more complex. Here is my basic understanding: A public and private key are generated by a certificate authority. This…
Nick
  • 203
  • 1
  • 2
  • 3
4
votes
5 answers

Public Key Authentication not work on Windows 10 Professional

I have been trying to configure OpenSSH for my Windows 10 Professional Edition media server. I can get normal password login working without issue but I am trying to set up public key authentication. I have edited my sshd_config file to allow for…
TitanShadow
  • 101
  • 1
  • 7
3
votes
1 answer

SSHd does not allow publickey authentication due to libcrypto bug

I can not login to my server with public key. Server details: Ubuntu Server 16.04LTS SSHd: OpenSSH_7.2p2 Ubuntu-4ubuntu2.4, OpenSSL 1.0.2g 1 Mar 2016 My public key is added to /home/user/.ssh/authorized_keys, but publickey authentication method…
Daniel
  • 191
  • 1
  • 2
  • 8
3
votes
0 answers

PROFTPD accepting all public keys regardless of contents of SFTPAuthorizedUserKeys file

I've just attempted to set up ProFTPD as an SFTP server, However I'm facing some curious behavior when it comes to public key authentication. For some reason, proftpd is acepting every single key fingerprint presented to it regardless if it is…
3
votes
6 answers

why SSH publickey authentification fails on one account but work on the other on the same server

I have a strange issue with SSH public keys. There's one account on the server where I've uploaded my public key to .ssh/authorized_keys and it works as expected (I can login with no password). Then there's an account on the same server where I've…
3
votes
2 answers

sshd: logging client's public key

I need to run an SSH server and log the IP & public key of any client that attempts to connect (without actually granting access). The use case is this: I deploy this web app to a remote host that, during the build process, fetches some dependencies…
sstur
  • 133
  • 3