Questions tagged [public-key]

283 questions
0
votes
1 answer

Pubkey authentication with SSH server running on Cygwin - session closes immediately

I am connecting from Linux via SSH to a Windows machine running SSH in Cygwin. I authenticate with a certificate. The session opens but closes immediately thereafter. With password authentication it works well - the session remains active until I…
Tomas Kohl
  • 203
  • 2
  • 6
0
votes
1 answer

On Windows, how do I set up sshd such that I can ssh in via key-based authentication from another windows box?

I am working to set up some deployment automation, and one of the things I'm trying is to use Ruby's Capistrano to remotely execute commands over ssh. I have used cygwin's openssh to run sshd on the box I'm using as the test victim. Out of the…
Peter Mounce
  • 1,253
  • 5
  • 16
  • 29
0
votes
1 answer

SSH key stopped working, still works on other servers

I've got about a dozen servers that I log into via an authorised ssh key, and up until today it was working fine. Today, one of those servers refuses to accept my key - it accepts a root key and my passphrase, just not my key. Nothing has changed in…
Andrew
  • 8,002
  • 3
  • 36
  • 44
0
votes
0 answers

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 successfully copied the public key (id_rsa.pub)…
0
votes
1 answer

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 the following error no matter what I…
0
votes
0 answers

Multiple authentication mechanisms on HPE switch

Question Is there a way to configure multiple authentication mechanisms for SSH logins on an HPE switch? Either I did not find that in the manuals yet, or there is no information on that topic. This is what I want to do: 1. Authenticate users in…
TomS
  • 175
  • 1
  • 1
  • 9
0
votes
1 answer

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 root@95.xxx.xxx.xxx and got this error Permission denied (publickey,password) here is…
rita1989
  • 11
  • 2
  • 7
0
votes
0 answers

ssh with jumphost and public key authentication, password prompt for jumphost instead of using key

I googled and tried for over 30 minutes, but I didn't find this usecase and thus didn't manage to get it working. Probably I used the wrong keywords. Using ssh -i privkey user@jumphost.org works. ssh asks for password of privkey. After entering…
Hannes
  • 307
  • 2
  • 12
0
votes
2 answers

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 PATH_TO_PUBLIC_KEY When I do this, ssh-keygen…
0
votes
0 answers

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 B: OpenSSH_8.2p1 Ubuntu-4ubuntu0.5, OpenSSL…
alexakarpov
  • 103
  • 5
0
votes
1 answer

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 just erring or if they were perhaps not using…
0
votes
2 answers

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 searched and searched and everything I have found says…
0
votes
0 answers

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 not match private key Public key for…
einpoklum
  • 1,652
  • 3
  • 21
  • 31
0
votes
1 answer

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 jumphost itself is running SSSD to authenticate users…
LHMathies
  • 113
  • 4
0
votes
0 answers

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. When I try to connect, I receive: Permission…
Daniel
  • 1
  • 1