Questions tagged [public-key]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
1k views

proftpd server allow second or multiple public key for single user

If I'm using openssh server, allowing multiple public keys are simple. It is enough put it into file ~/.ssh/authorized_keys with content ssh-rsa ****there_is_public_ssh_key**** ...
Znik's user avatar
  • 348
0 votes
0 answers
202 views

sshd: save the client's public key

Today we needed to sFTP to a remote server. The remote server administrators didn't want us to send them the user's public key; instead, they asked the user to perform an initial connection, that was ...
simlev's user avatar
  • 1,145
3 votes
1 answer
496 views

Verify authenticity of SSH host on Digital Ocean droplet (FreeBSD)

When first connecting via SSH with keys to a newly minted Digital Ocean droplet VM running FreeBSD (per this tutorial), we get a message about “The authenticity of host blah-blah can’t be established”....
Basil Bourque's user avatar
0 votes
1 answer
880 views

ec2 ssh Permission denied (publickey)

Two days ago, I tried to connect to the server with ssh as usual. But I got a connection refused error. I've tried a lot of solutions. As in this youtube video (https://www.youtube.com/watch?v=...
Hüseyin KÜÇÜK's user avatar
0 votes
2 answers
2k views

Permission denied (publickey) when cloning git repo, but SSH works fine

I'm attempting to clone a git repo using SSH protocol like so: sudo git clone [email protected]:/var/www/repo But I'm getting the "Permission denied (publickey)" error. However, I already placed my ...
Ryan Palmer's user avatar
0 votes
1 answer
2k views

Lost connection with ssh server through web console ssh (GCP, Putty, gcloud terminal, Filezilla)

After a year using the VM instance in debian, we changed the ssh keys to connect to other computers, after having generated the pair of public and private keys with putty, and adding it to the ...
Ingeniera y Desarrollo ID's user avatar
0 votes
2 answers
380 views

SSH Public Key Management for a small team

I'm setting up a deep-learning workstation in my college's lab. It's running Ubuntu Server 16.04 and I set up a SSH server in it, to control it remotely. My task now is to make it available for my ...
Lucas Figueiredo's user avatar
0 votes
3 answers
3k views

Force Unix SFTP to use public key only and not to use other authentication method

Is it possible to force SFTP to use the configured public key only and not to proceed to other authentication method like password auth on failure to authenticate using public key? the ...
Clauds Boo's user avatar
1 vote
1 answer
824 views

Possible to create multiple public and private key to SFTP Linux server?

I try to create Public Private key to Linux SFTP server. If I have 5 different users accessing SFTP and wondering is it possible to create key to every single users accessing from different client ...
Keke's user avatar
  • 13
2 votes
3 answers
945 views

Add a Public Key to an Ubuntu EC2 server via SSH

I’m trying to add my friend’s public key to my Ubuntu EC2 server via the ssh terminal but I can’t find the file that I paste the key in. Can anybody explain where the file is?
ProfitPhoenix's user avatar
0 votes
2 answers
5k views

How to tell SFTP which public key to use?

SFTP has an option "-i" to set the private key to use for public key authentication. However, there does not appear to be an option for which matching public key to use. Surely it must need this to ...
aaa90210's user avatar
  • 351
2 votes
2 answers
4k views

How to use PAM to manage lockout policy for ssh public key authentication methods

I have followed instructions on redhat on how to harden authentication on a linux server, but we only use SSH with public key auth. According to these instructions: https://access.redhat.com/...
alexfvolk's user avatar
  • 174
2 votes
1 answer
631 views

Make Gitolite retrieve ssh keys from LDAP

I think I have some understanding problems with what I want to achieve... So, let's start with what's currently working (all described servers are running CentOS 7) : an OpenLDAP server which ...
zrtYouyou's user avatar
0 votes
2 answers
26k views

Mobaxterm - Permission Denied (Publickey)

Am having some issues connecting to a linux instance in AWS via mobaxterm. I get the following error when trying to SSH on to the server; ─ [2018-02-16 10:07.57] ~ [bunde.DESKTOP-A0APQ1T] ➤ ssh -v -...
Dave H's user avatar
  • 1
3 votes
1 answer
28k views

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/...
Daniel's user avatar
  • 191
1 vote
1 answer
489 views

Where ARC public key is stored?

Where ARC public key is stored? For DKIM it is [selector]._domainkey.example.org. But for ARC? Is it the same as DKIM and holds in TXT query for domain mentioned above? Thank you.
Javier Hernández's user avatar
0 votes
0 answers
96 views

Public key size

I'm having a problem between an older W2k3 application client and a manager server running on W2k12R2. I've tested the same W2k3 client to another manager also on W2k12r2 and have no issues so It ...
Mike F's user avatar
  • 141
0 votes
3 answers
510 views

How to have single ssh public-private key pair for a user across different servers?

I am working on standardizing different bits in our environment and as part of that would like to move towards ssh key based authentication. Currently we have individual accounts in each servers (...
Ram Kumar's user avatar
-1 votes
3 answers
2k views

Linux + how to run the ssh-keygen interactive from bash script [closed]

Please advice how to generate the file id_rsa.pub without answering the questions from "ssh-keygen -t rsa" my target is to run the ssh-keygen from bash script from postgress USER, and it must run ...
shalom's user avatar
  • 501
0 votes
3 answers
1k views

Zevenet Load Balancer - SSL Certificate

I am really new to this so please be nice :) I am wondering if anyone has any experience with Zevenet Load Balancers. I have setup the community version (V4). I have 2 web servers with replicated ...
David Ashcroft's user avatar
0 votes
1 answer
349 views

Dnscrypt-proxy client public key for identification

I have a problem with setting 'client public key' in dnscrypt-proxy. For every key that I generate and try to use dnscrtpy-proxy returns an error: The client key file doesn't seem to contain a ...
A. Bialy's user avatar
3 votes
0 answers
953 views

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 ...
Rui Fung Yip's user avatar
1 vote
1 answer
2k views

Is it possible to disable ssh password authentication for own user without root access? [closed]

I would like to disable ssh password authentication for my user account on a server where I don't have root priviledges, so that I can only log in via publickey authentication. Everything I found on ...
fifaltra's user avatar
  • 129
2 votes
0 answers
15k views

requirement "uid >= 1000" not met by user "root" in CentOS

I have a server with CentOS. Am trying to configure and connect to the server using a Public SSH-Key, I configured all: user, user folder, .ssh, etc. Now, trying to connect I get this error in the ...
Sredny M Casanova's user avatar
0 votes
1 answer
520 views

Login some users as root with SSH and LDAP

I have a SSH + LDAP installation with users public keys stored in LDAP. I want that when some user in a list (configured into server) do a ssh connection with ssh user@server always log in as root. ...
Lito's user avatar
  • 265
-2 votes
2 answers
5k views

Ansible: imposible to connect to server SSH Error: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password) [closed]

I have set up some ansible roles to configure a php web server. I use vagrant to my working copy and it works perfectly. But when I want to connect to a remote server I get this error: fatal: [...
petekaner's user avatar
26 votes
6 answers
4k views

Why should I use Public-Key Authentication for SSH?

I am running a SSH server and I am still using simple password authentication. Everywhere I read about security I am advised to use Public-Key Authentication. But I don't get the advantages. Using ...
Aravor's user avatar
  • 371
1 vote
1 answer
5k views

Ansible to access Github: become causes Permission denied (publickey)

Objective Would like to understand the mechanism why using become to be the ansible user causes "Permission denied (publickey)". User ansible to run ansible-playbook to checkout a Github repository. ...
mon's user avatar
  • 265
4 votes
2 answers
4k views

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 ...
user avatar
1 vote
1 answer
95 views

Allow system accounts to login to other server without passwords

i'd like to allow user 'devel' to login to any other server using public keys as user 'devel'. This user is not a human, but a scripting-only account. How can I accomplish this? Is Puppet the right ...
Felipe Alvarez's user avatar
4 votes
0 answers
317 views

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 ...
MvG's user avatar
  • 1,813
0 votes
2 answers
2k views

Google Cloud Compute (GCE) Using gcloud Does Not Create Valid Formatted Public Key for SSH

We have problems with SSH, both with creating the keys yourself, and also the same problem exists with gcloud creating the keys. To demonstrate that this is not a problem self-created we performed ...
David Beach's user avatar
6 votes
1 answer
2k views

What is the good practice for adding known keys/fingerprints to known_hosts

There are plenty of answers to questions similar to this one but I can't seem to find one with a clear answer. They all either grab the public key at least once, ignore the key altogether, or write ...
D.Mill's user avatar
  • 379
0 votes
1 answer
12k views

SSH public key not Working - No supported authentication methods available

I'm trying to allow another developer to connect to a our ubuntu server and they are getting the below error in FileZilla. Disconnected: No supported authentication methods available (server sent: ...
Holly's user avatar
  • 1,037
0 votes
1 answer
106 views

How to avoid asking password when logging via SSH Key?

I have this scenario: I login to dns1 with key and same with dns2. Suddenly for each of the keys I used it started to ask me server password, this was never happening in past, and I did no changes on ...
Uhl Hosting's user avatar
11 votes
3 answers
6k views

Can I use Public-Key-Pins with LetsEncrypt?

Can I setup Public-Key-Pins when I setup a cronjob to renew the LetsEncrypt certificate every 30 days? If the certificate is renewed then the Public-Key-Pin is also renewed right?
Bob Ortiz's user avatar
  • 444
5 votes
1 answer
23k views

How to export private key? (GnuPG) [closed]

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's user avatar
  • 181
0 votes
3 answers
13k views

how do I covert a certificate with extension .cer to .asc

I have a certificate file (with extension .cer) that has content which looks something like this. -----BEGIN CERTIFICATE----- lots of data here -----END CERTIFICATE----- It is our signing ...
user55926's user avatar
  • 101
0 votes
1 answer
330 views

AWS EC2 Instance rejected public key

I just launched a AWS EC2 Image today, I got to authenticate successfully and I did the following changes: sudo yum update Install Oracle JDK 8_92 using wget Remove all other java options export ...
HFR1994's user avatar
  • 153
0 votes
1 answer
2k views

Access with ssh only password without publickey with virtualbox

I tried to setup the ssh-server without publickey , with openssh-server 6.7p1-5 changed sshd_config RSAAuthentication no PubkeyAuthentication no PasswordAuthentication yes Restart ssh service from ...
enjoy343322434's user avatar
-2 votes
3 answers
1k views

Permission denied (publickey) for my AWS EC2 instance from another computer

I have a public key file say dummy.pem and i copied this to another computer from where i need to access my EC2 instance. But it says @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ ...
Prabhu Vignesh Rajagopal's user avatar
-1 votes
1 answer
151 views

Restrict su - user for a user having public-private key pair

We have a user named user_root in our Linux environment. For which we have created the key-pair in AWS. This is our root user and our administrators log in with this username and the ppk file. We don'...
Neetika's user avatar
  • 81
5 votes
1 answer
3k views

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 [email protected]:. ...
Saqib Ali's user avatar
  • 589
0 votes
1 answer
84 views

Centos requires me to change my password while I'm using private keys

I tried to login to my remote CentOS server using my private key and I was surprised to get this message : There were 29031 failed login attempts since the last successful login. After that it ...
Linuxer's user avatar
0 votes
0 answers
321 views

Why is my private key accepted on SSH only after I login on the target machine?

I have an interesting situation which I'm not even sure where to begin to investigate from. I have a Ubuntu 12.04 server with SSH locked down to PK-auth. When I reboot my server, and try to SSH into ...
Yavor's user avatar
  • 101
0 votes
1 answer
1k views

How to use PuttyGen.exe when moving key(s) from old machine to a new machine?

I've only generated the public/private key pair in PuttyGen.exe once. This was the first time I've ever used this tool. Rather than having the folks hosting the server that I'm connecting to, who ...
JustBeingHelpful's user avatar
1 vote
1 answer
1k views

Google Cloud auth access key secret key?

Apologies for probably a basic question. Getting started with Google Cloud and require the access key and secret key to test online backups to Google Storage using Backup Exec 2015, however I can't ...
colin royds's user avatar
-2 votes
3 answers
1k views

How to connect to a SFTP [closed]

Got a SFTP Hostname username password from someone and he gave me a Server RSA public key fingerprint like this: d2:h4:h5:gf:f4 etcetera. But how do i need to connect to this host, doesnt this ...
Nuri Ensing's user avatar
11 votes
1 answer
31k views

How can I get sshd to tell me why it's failing public key authentications? [closed]

I'm using OpenSSH 6.9p1 (on Lubuntu) as my SSH server. When trying to connect to it (using an SSH client in Cygwin), I keep being reverted to password authentication, despite having properly generated ...
einpoklum's user avatar
  • 1,722
0 votes
3 answers
3k views

How to add ssh publickey to Clustered NetApp for Active Directory user?

I am trying to load my ssh public key on a netapp instace but it seems that it does not allow me to add my key. lcy2-dosvm01::security login publickey> load-from-uri -uri http://pastebin.com/raw....
sorin's user avatar
  • 8,216