Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [public-key]

The tag has no usage guidance.

0
votes
0answers
12 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”....
0
votes
0answers
44 views

Restore gpg key from for Debian repo after accidental apt-key del

As per title, I need to restore the keys but I think I got something wrong. I deleted the key for deb.debian.org . The solution I am using is sudo gpg --keyserver keyring.debian.org --recv-keys ...
0
votes
1answer
98 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=...
0
votes
2answers
172 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 ryan@example.com:/var/www/repo But I'm getting the "Permission denied (publickey)" error. However, I already placed my ...
0
votes
1answer
175 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 ...
0
votes
2answers
127 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 ...
0
votes
3answers
157 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 ...
1
vote
1answer
66 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 ...
2
votes
3answers
91 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?
0
votes
2answers
157 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 ...
2
votes
2answers
483 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/...
1
vote
1answer
157 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 ...
0
votes
1answer
2k 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 -...
1
vote
1answer
440 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/...
1
vote
1answer
114 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.
0
votes
0answers
68 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 ...
0
votes
3answers
62 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 (...
-1
votes
3answers
401 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 ...
0
votes
1answer
261 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 ...
0
votes
1answer
142 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 ...
-1
votes
1answer
295 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 ...
2
votes
0answers
5k 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 ...
0
votes
1answer
120 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. ...
-2
votes
2answers
2k 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: [...
26
votes
6answers
3k 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 ...
1
vote
1answer
1k 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. ...
1
vote
2answers
1k 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 ...
1
vote
1answer
66 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 ...
2
votes
0answers
121 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 ...
0
votes
2answers
440 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 ...
0
votes
0answers
501 views

OS X ssh to linux - permission denied (publickey)

Something strange with OS X SSH client while connecting to some Linux boxes. Now I'm trying to connect from my mac to remote Debian running in qemu behind the router. Unsuccessfully :( But if I'll try ...
6
votes
1answer
797 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 ...
0
votes
1answer
10k 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: ...
0
votes
1answer
67 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 ...
10
votes
3answers
4k 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?
4
votes
1answer
15k 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?
0
votes
2answers
3k 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 ...
-1
votes
1answer
193 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 ...
0
votes
1answer
584 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 ...
-2
votes
3answers
751 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 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ ...
-1
votes
1answer
55 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'...
2
votes
1answer
507 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 myuser@myhost.something.something.com:. ...
0
votes
1answer
45 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 ...
0
votes
0answers
221 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 ...
0
votes
1answer
286 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 ...
1
vote
1answer
484 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 ...
-2
votes
3answers
491 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 ...
4
votes
1answer
8k 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 ...
0
votes
3answers
2k 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....
-2
votes
1answer
858 views

EC2 key pair authentication

I've created a custom ec2 ami image and trying to authenticate aws instance by using ec2 key pair authentication for a user USERVM by following below steps. ami creation . ec2-run-instances ... ...