Questions tagged [public-key]

283 questions
0
votes
2 answers

Public/private key

I just watch this video https://youtu.be/ZhMw53Ud2tY and the question I have is if I have to generate a public/private key pair for each server I’m looking to login to or if I just generate one pair and use that for each server. Somehow that last…
vespino
  • 111
  • 5
0
votes
1 answer

For SSH access only, do I leave `#PubkeyAuthentication yes` commented out in sshd_config, or uncomment it?

Just setting up a new Debian 10 server having uploaded my public SSH keys, not restarted sshd yet. I can now log in without password, so now doing all the usual recommended edits in /etc/ssh/sshd_config: ChallengeResponseAuthentication no usePAM…
Dave Everitt
  • 201
  • 1
  • 4
  • 11
0
votes
0 answers

GPG import skips public key in file (no user ID)

On computer-a a key is generated, linking it to email aaaa@bbbbb.com, using command gpg --gen-key Then it is exported using command gpg --export -a --output public.asc aaaa@bbbbb.com The file is transferred to computer-b using command scp…
i723
  • 1
  • 2
0
votes
1 answer

Strongswan roadwarrior scenario with pubkey authentication issues

Ubuntu 20.04 Strongswan 5.9.1 (built from source) swanctl.conf Android Strongswan app I am using a self signed ca and certificates. roadwarr-ikev2-pubkey { version = 2 #proposals =…
lk7777
  • 243
  • 2
  • 10
0
votes
2 answers

Cannot access my server "Permission denied (publickey)."

Hi i have created a key ring on my server B I copied the public key of my server B to the authorized_keys file of my server A My servers are on Ubuntu 20.04 LTS When I try to transfer a directory from server A to server B, I get this…
Mathieu
  • 45
  • 2
  • 8
0
votes
2 answers

Local GitLab Not Accepting SSH Key

I checked out this post, but it seems like it was written for OSX and/or Windows, and I'm not really sure how to apply it to my situation: GitLab Not Working With SSH-Keys I set up my GitLab instance normally, using Omnibus (the bash script that…
Alex Eastman
  • 111
  • 3
0
votes
1 answer

the same ssh rsa key does not work in Ubuntu(WSL) while from RHEL7 it works

I'm trying connect from Ubuntu(WLS) to RHEL7 server using ssh RSA key. And it does not work, while the same key when used from another RHEL7 host works. I checked all file permissions There is no "from clause" in authorized keys on the other side I…
ibre5041
  • 285
  • 1
  • 8
0
votes
0 answers

ssh public key auth fails for private git server

I want to git push from a local debian 10 user to my server (debian 10) where I have set up a git server under the username git using ssh public key auth. The problem is: it still asks for the password. First of all, pushing via password works fine.…
Pratched
  • 101
  • 2
0
votes
1 answer

openSSH don't disclose reason for permission denial

i have set up public key authentication on my VPS, and disabled password logins. If someone tried to connect to my VPS, it right now says "Permission denied (publickey,gssapi-keyex,gssapi-with-mic)". I don't feel very comfortable with people knowing…
reign
  • 25
  • 1
  • 3
0
votes
2 answers

Permission denied (publickey) - Troubleshooting sshd pulling public keys from LDAP Server

1. Problem Summary: Hi, recently, in our infrastructure production environment, new users are unable to ssh into a debian jump server. The jumpserver' SSH daemon retrieves the SSH public keys from the LDAP Server. We verified sshd local…
lsambo
  • 103
  • 2
-1
votes
1 answer

SSH connection between two hosts with differents user

i have two hosts H1 with ip=10.10.10.15 , OS=Windows Server 2016 and username=administrator H2 with ip=10.10.10.16 , OS=Centos7 and username=user I attempt to create a ssh connection between H1 and H2. I mean, when i tape from the windows machine :…
Prince Tagoe
  • 41
  • 3
  • 9
-1
votes
3 answers

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

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 interactive , or maybe run the id_rsa.pub with…
shalom
  • 461
  • 13
  • 29
-1
votes
1 answer

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't want to share it with the other teams. When…
Neetika
  • 71
  • 2
  • 5
-1
votes
1 answer

Unable to disable SSH public key authentication and enable password authentication

I have a google compute engine instance, and I want to disable public key authentication (yes I know that it's a bad idea, before people jump in on me, just bear with me here) and in its place enable password authentication. I have looked around,…
NlightNFotis
  • 125
  • 1
  • 6
-1
votes
1 answer

Location for private key file for SFTP user

I would like to create a user account that can access web server files. I could set the home directory of this user to /var/www now, but the standard location for the authorized_keys file is in the user's home directory and I don't like those files…
chaosflaws
  • 101
  • 2
1 2 3
18
19