Questions tagged [public-key]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
0 answers
98 views

why does GPG ignore the trust level I had set for recepient key?

I encountered the following puzzling behavior with GPG: after I set trust for a recipient's key, gpg still complains it doesn't know if it should use the encryption subkey and prompts for input. Here ...
sema's user avatar
  • 31
0 votes
0 answers
131 views

Can not SSH to GUI Ubuntu on Login Screen

I have a laptop with Ubuntu installed, and I've set up SSH using a key, and everything was working fine (I could SSH into the laptop from another computer). Then, I rebooted the laptop, and on the ...
Thuannb96's user avatar
1 vote
0 answers
431 views

AuthorizedKeysCommand setup prompts for password

The issue: Even though I've set up AuthorizedKeysCommand and password authentication is stopped when I attempt to log in from my Mac, I am still being asked to enter the password: OS: Rocky Linux 9.2 ...
zamunda68's user avatar
-2 votes
2 answers
104 views

the theory of SSH public and Private key and its application in realworld machines [closed]

there. In this question, I have a very specific one about public and private keys. So Public keys should be put on the opposite side. For example, if we have a server, the public key of the server ...
Sina M's user avatar
  • 3
0 votes
0 answers
256 views

Linux server ssh connection wont authenticate my account using ssh key gen and prompts me for password

I am facing an issue in Ubuntu 22.04.2. where I am unable to SSH into a remote server using a copied public key. I have generated an SSH key pair on my local machine using a bash terminal, and I have ...
Stuff's user avatar
  • 1
0 votes
1 answer
846 views

Permission denied (publickey) error when managing GCP machine via Ansible (running on GCP VM) despite successful SSH connection

I deployed two machines to GCP via Terraform. Let's call them control-host and target-host. I want to manage the target-host via Ansible installed on the control-host. Unfortunately, I keep getting ...
mångata's user avatar
  • 109
2 votes
1 answer
10k views

Ansible playbook can not connect to remote user through ssh => unreachable & permission denied

I'm building a complete solution to setup and harden our vps (ubuntu 22.04) with bash script and Ansible playbooks. What I want to do is the following: Create a custom group "sudogroup" ...
Emmanuel FRANCOIS's user avatar
1 vote
1 answer
6k views

Ssh login error - Permission denied (publickey,password)

i just had configured a debian server and installed aapanel on it. I also changed the default port to 50001 instead of 22. now i tried to login with ssh -p 50001 [email protected] and got this error ...
rita1989's user avatar
2 votes
3 answers
6k views

SSH authenticate with publickey,password or publickey,none

On my SFTP-Server I want to allow only login via public key AND password OR (if and ONLY IF user has no password) by only public key I set the following in the the sshd_config: AuthenticationMethods ...
Jorg busch's user avatar
11 votes
2 answers
4k views

ssh how to allow a very limited user with no home to login with pubkey

I have a very restricted user in my ssh server created with --no-create-home and --shell /bin/false. I know I can define authorized_keys file in sshd_configs for the user's public key. But how can I ...
Mojtaba Rezaeian's user avatar
1 vote
0 answers
822 views

Connection closed by remote host when copying client public key to sftp server

I want to copy the client public keys for a container to a remote sftp server and after that attempt do some uploads to the server via bash script(the bash script will be invoked when the container ...
Golide's user avatar
  • 143
1 vote
0 answers
428 views

Trying to get 100% in ssllabs.com key exchange with nginx (Oct/2022)

My site got A+ on all score fields, however, it seems ssllabs.com changed some measures, and the key exchange score is not 100% any more: screenshot My previous Nginx setting is like this: ...
Moses's user avatar
  • 11
0 votes
2 answers
2k views

ssh-keygen unable to verify key "unknown option -- Y"

Context: I am trying to verify my public key on a Gitea instance. Gitea provides a token for me to generate a signature; The instructions say: echo -n 'TOKEN_PROVIDED' | ssh-keygen -Y sign -n gitea -f ...
Christian Galo's user avatar
0 votes
0 answers
1k views

Different SSH versions and behaviors, public key failing

I got 2 Ubuntu machines, a new A and old B. The ssh configuration files are identical, but versions are different, as expected: → ssh -v localhost A: OpenSSH_8.9p1 Ubuntu-3, OpenSSL 3.0.2 15 Mar 2022 ...
alexakarpov's user avatar
0 votes
1 answer
83 views

AWS CLI Usage Issue

In our scenario, We previously had some AWS keys. The IAM interface show/showed no usage for it but the employee has been able to upload resources. Could anyone advise how to check if the interface is ...
samtech 2021's user avatar
-2 votes
1 answer
47 views

Management of password disable server

This question is just for curiosity. I am studying a bit of server administration and have seen many people saying that having passwords is a bad idea and they should be disabled. But my question is: ...
Carlos Andrés del Valle's user avatar
2 votes
2 answers
3k views

Openstack ubuntuVM SSH public key Permission denied on first boot

I am deploying Openstack(I tried victoria and ussuri) with kolla-ansible on 3 CentOS 8 Nodes (1=Control+Compute,2 and 3=Compute). Deployments works fine without any problems but when I create a new VM ...
Michael's user avatar
  • 21
0 votes
2 answers
513 views

ssh -A still not allowing git pull

We have a setup where our git server needs the publickeys to authenticate in order to push or pull. I am trying to do so on one of our servers and can't figure out why it isn't working. I have ...
Neglected Sanity's user avatar
1 vote
2 answers
5k views

No associated key pair, add key pair to EC2 with no key pair

How do you add an existing key to a live EC2 instance that has no key pair? I have tried using Session Manager to vi /.ssh/authorized_keys and add in the public key of the pair, but I get this error: &...
inac's user avatar
  • 519
1 vote
0 answers
3k views

Public key for /etc/ssh/whatever does not match private key - but it does

When I start my ssh service (on a Devuan Chimaera Linux box), I get the warnings: Public key for /etc/ssh/ssh_host_rsa_key does not match private key Public key for /etc/ssh/ssh_host_ecdsa_key does ...
einpoklum's user avatar
  • 1,722
0 votes
1 answer
458 views

Does using an SSH jump host count as a login?

I have asked for a service account from the AD guys that will let me use a specific server as an SSH jumphost (using ProxyJump), and of course I've set up an SSH private key for the purpose. The ...
LHMathies's user avatar
  • 113
2 votes
1 answer
1k views

AWS - ssh to instance in private subnet

I have 2 instances in AWS. One of them in a public subnet (bastion), the second one in a private subnet. Both of them were launched with the same key pair (.pem file). This is how I connect to the ...
shoddylik's user avatar
1 vote
1 answer
1k views

SSH - Permission denied (publickey)

It's another SSH issue. It worked before updating to Fedora 33, but now it doesn't which makes me believe it's a client side issue. Anyone seeing something in the logs which could give a clue? ...
AnotherCluelessGuy's user avatar
0 votes
0 answers
91 views

Can I use SCP while having multiple AuthenticationMethods, like publickey,password?

My task is to create a bash script that will copy files from server2 in my server1. The issue is that I can't connect from one server to another. I have whitelisted server1 IP on my server2 22 port. ...
Daniel's user avatar
  • 1
0 votes
2 answers
92 views

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 ...
vespino's user avatar
  • 111
0 votes
1 answer
8k views

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/...
Dave Everitt's user avatar
1 vote
0 answers
239 views

OpenSSH Windows server 2012 : SCP process randomally working : with passowrd authentication

I have created a openSSH SCP bat script and scheduled task to run as SYSTEM. I use publickkey authentication method. For that converted a private key of winscp to openSSH key using putty key gen and ...
TAMIL VED's user avatar
0 votes
0 answers
2k views

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

On computer-a a key is generated, linking it to email [email protected], using command gpg --gen-key Then it is exported using command gpg --export -a --output public.asc [email protected] The file is ...
i723's user avatar
  • 1
0 votes
1 answer
839 views

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 = aes192gcm16-...
lk7777's user avatar
  • 253
0 votes
2 answers
4k views

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 ...
Mathieu's user avatar
  • 45
4 votes
5 answers
9k views

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. ...
TitanShadow's user avatar
1 vote
2 answers
94 views

I have an issue with configuring openvpn server and running it

Server Log Options error: Unrecognized option or missing or extra parameter(s) in server.ovpn:4: cert (2.4.9) Use --help for more information. server configuration server 192.168.1.0 255.255.255.0 ...
Chacko Mathew's user avatar
3 votes
3 answers
5k views

authorized_keys has my key, but it's still refused

I'm connecting from machine M1 to machine M2 using ssh (to the same user on the other machine). I should also mention the user shares the same key on both machines. With password authentication, ...
einpoklum's user avatar
  • 1,722
0 votes
2 answers
2k views

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 ...
Alex Eastman's user avatar
2 votes
1 answer
4k views

HTTP authentication with public/private key pair

I'm looking for a way to authenticate clients/users at a web server with public/private key pairs and already read this question: Public key authentication or similar over HTTP/HTTPS? The answers are ...
fishbone's user avatar
  • 151
0 votes
1 answer
1k views

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 &...
ibre5041's user avatar
  • 287
0 votes
0 answers
638 views

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 ...
Pratched's user avatar
  • 101
0 votes
1 answer
58 views

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)". ...
reign's user avatar
  • 135
0 votes
2 answers
979 views

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 ...
lsambo's user avatar
  • 103
3 votes
1 answer
28k views

Correct configuration of the SSHD config file?

I'm using ssh on my linux box, I want to secure it to be as watertight as possible, only allowing ssh via ed25519 elliptic curve crypto sigs. I thought I had it setup correctly, disabling password, ...
Woodstock's user avatar
  • 113
0 votes
1 answer
520 views

Deploy Public Key in Windows Server

I have a Windows server in AWS and I want to deploy a public key to connect sftp authentication by key file. I use freeftpd to reach my sftp connection but the program do not support key ...
Jorge Ivansevick's user avatar
0 votes
1 answer
36 views

Can MS AD Certificate Services maintain both public and private keys in active directory?

Is there enough control over AD user properties to have custom fields (one with only SELF having read permissions) and with Certificate Services to automatically maintain/auto-renew certificates and ...
joshhemphill's user avatar
0 votes
1 answer
194 views

How to adequately add identical public-private ssh key to a new client machine?

I have generated private and public key pair files (id_rsa, id_rsa.pub) using ssh-keygen command in a machine A, which is a client. I have tested my connection to server in machine A and it is working ...
Jorge Johanny Sáenz Noval's user avatar
-2 votes
1 answer
311 views

Installing EC2 .pem publickey to Debian ssh

I recently generated a publickey (.pem) from an EC2 instance, used ssh-add to add the key to my local machine. The IdentifyFile in the Host entry at /etc/ssh/ssh_config points to the .pem file at ~/....
thedesertprince's user avatar
2 votes
2 answers
318 views

how to create status of REMOTE HOST IDENTIFICATION HAS CHANGED when performing ssh to remote machine for testing

We want to cause the status from a remote Linux machine to return "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r", "@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @\r", "@@@...
shalom's user avatar
  • 501
1 vote
1 answer
192 views

RSA key pair is not allowing me to authenticate to my backup server [closed]

I have a server that authenticates SSH through RSA key pairs. Yesterday my rsync backup worked successfully I know this because of log files: /var/log/backups_log$ ls -l total 815536 -rw-r--r-- 1 ...
13aal's user avatar
  • 111
2 votes
1 answer
3k views

Display public keys + fingerprints of Dropbear SSH server

While I normally use OpenSSH I have Dropbear installed on a Debian system to provide a small SSH server for unlocking disk encryption during initramfs boot phase. Dropbear and OpenSSH have different ...
Daniel Böhmer's user avatar
-1 votes
1 answer
268 views

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 ...
Prince Tagoe's user avatar
0 votes
1 answer
112 views

How to set another public key for EC2

I would like to change my public key for all instances EC2 in AWS. I still have the previous key. So far, I created a new public key, but I don't know how to attach the newest to all EC2 instances. ...
Khalil Mebarkia's user avatar
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

1
2 3 4 5 6