Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [key-authentication]

Questions pertaining to key authentication, a type of authentication that may be used as an alternative to password authentication. Instead of requiring a user's password, it is possible to confirm the client's identity by using asymmetric cryptography algorithms, with public and private keys.

Filter by
Sorted by
Tagged with
0 votes
0 answers
57 views

Error in libcrypto when attempting to create Public/Private Keys in PEM format with Passphrase in FIPS mode

After attempting to create a public/private key using the following commands with a passphrase I receive this error Saving key "/home/.ssh/rsa_id" failed: error in libcrypto If I run this ...
Jason R's user avatar
0 votes
1 answer
126 views

sshd: Server refused public-key signature despite accepting key

I am renting a VPS running CentOS Stream 8, for which I set up SSH pubkey authentication for the user "foo". I access it via PuTTY on Windows. Recently I rented another VPS running Rocky ...
dr_'s user avatar
  • 30.1k
2 votes
1 answer
46 views

Why does setting `umask` to `0077` (and then downloading public key) makes a gpg public key unavailable for apt?

Why does setting umask to 0077 makes a gpg public key unavailable for apt when installing a package, e.g. umask 0077 curl -fsSLo /usr/share/keyrings/brave-browser-beta-archive-keyring.gpg https://...
John Smith's user avatar
0 votes
1 answer
27 views

SSH_AUTH_SOCK security

I noticed that for SSH_AUTH_SOCK value, its folder is inaccessible by anyone else, yet the actual file itself can be read by anyone. What's the reason behind such design? If I put a world-readable ...
xpt's user avatar
  • 1,644
0 votes
1 answer
44 views

Passwordless Authentication for Ansible

I have installed ansible and created new users for controller and remote hosts. Have set up the below steps, but getting error, can anyone suggest ?? Entered user using visudo, for both controller ...
Piyush Nikhade's user avatar
0 votes
1 answer
142 views

How to remove some ssh keys to be used when connecting to server

ssh -vv -D 1618 -C -N someserver debug1: Authentications that can continue: publickey debug1: Next authentication method: publickey debug1: Offering public key: /home/ubuntu/.ssh/id_rsa RSA SHA256:...
Kokizzu's user avatar
  • 9,951
0 votes
0 answers
41 views

Getting password ssh prompt after broken connection

I have the pubkey installed on the server I want to connect, and it works like a charm most of the times. However, every time I close my computer without first closing the connection, once I try to ...
Alberto's user avatar
  • 101
0 votes
0 answers
36 views

SSH public key authentication error. Access to only one specific folder

I've a problem with SSH public key authentication. I'm a travel agent and need to give to the client (Amadeus) the access to only one folder on my server located in home directory, ex. xxx so I ...
Damian's user avatar
  • 1
0 votes
0 answers
32 views

Source server public key not getting copied to another target server

I am trying to access the two target Linux systems by copying the same id_rsa public key from my same USS source server where I generated it. I am able to copy the generated key to one target system ...
Brindha Sharadha's user avatar
1 vote
1 answer
40 views

ssh is picking up other keys [closed]

ssh utility is adding keys and doing stuff with known_hosts, and I get this error: ubuntu@${addr}: Permission denied (publickey). I have this code: #!/usr/bin/env bash ssh-add -D ssh -vvv -i 'my.pem'...
Alexander Mills's user avatar
0 votes
1 answer
56 views

Is a MITM attack possible in this scenario?

OS is Debian. Imagine I have my own apt repo set up inside a private network. This repo is set up to provide a single package to other servers on this network. I can easily create a signing key for my ...
cat pants's user avatar
  • 487
0 votes
1 answer
91 views

How to configure separate ports and keys for restic usage?

I want to use restic for remote backups, but seeing as SFTP and SSH will both require access to the system, is there some way to configure the SSH access to the server in such a way that the ...
vfclists's user avatar
  • 7,619
0 votes
1 answer
118 views

Totally Legit Signing Key <[email protected]>

I run: gpg --list-keys I get: pub rsa1024 2014-01-26 [C] <REMOVED> uid [ unknown] Totally Legit Signing Key <[email protected]> Can this be dangerous? What is this? ...
Ohumeronen's user avatar
1 vote
0 answers
273 views

Unable to SSH to a server from Jenkins using ED25519

RSA keys going to be decommissioned due to weak security and hence tried o generate a key using ED25519 type using the command ssh-keygen -t ed25519 -C “testkey” and generated the public private key. ...
Muthu Kumar's user avatar
0 votes
0 answers
52 views

ssh-agent doesn't accept passphrase on first load

When there is no ssh-agent process running, when I open my terminal, the ssh-agent is started and it asks me for my passphrase for my private key. Every time I try to enter it, I get an error: Bad ...
kataba's user avatar
  • 11
0 votes
1 answer
99 views

Having downloaded keyring and imported public key, why is the public key still unavailable for apt?

I am trying to install brave-browser-beta on Debian testing with the following script run as root: #!/bin/bash pdir=$(dirname "${BASH_SOURCE[0]}") skf="${pdir}/brave-beta-signing-key&...
John Smith's user avatar
2 votes
0 answers
119 views

ssh-agent with multiple keys

I have a script which retrieves private keys from a repository database and adds them to the ssh-agent with ssh-add - <<<"----My Private Key----" The keys don't get stored on the ...
Kai78's user avatar
  • 21
0 votes
1 answer
136 views

Can we use bi-key authentication with dovecot & thunderbird?

I run the dovecot imap server and use thunderbird as frontend. The access is password protected, and I see zillion login attempts with leaked passwords. I would like to switch to bi-key authentication ...
chmike's user avatar
  • 211
0 votes
0 answers
43 views

SSH VScode to ec2 instance AWS Linux

I am trying to connect to an AWS ec2 instance from my MacBook Pro using VScode. I am able to connect to the ec2 instance through the terminal by cd'ing to the Downloads folder (where my key pair .pem ...
dinosaurslayer's user avatar
0 votes
0 answers
22 views

Sign-in options problem in chromium with podman on wsl

I have some usage on aws-cli command on wsl debian/ubuntu no matter what distro, in which before some transition to other account everything worked fine with AWS SAML endpoint. Authentication did not ...
Marko Jovanovic's user avatar
2 votes
1 answer
453 views

What can I determine about my public key on host server?

The administrators at sftp.foobar.com have done the following: Acknowledged receipt of my public key. (id_rsa.pub) Given me a hostname of their server (sftp.foobar.com) Given me a userid for an ssh/...
zundarz's user avatar
  • 363
0 votes
0 answers
29 views

Key generated with key agent being asked several times (which is to give it only once)

Key generated with key agent being asked several times (which is to give it only once) I am running a bash script to automate a backup on a NAS. I successfully generated a key (I had some difficulty ...
ecjb's user avatar
  • 455
0 votes
1 answer
135 views

Log in to remote server by using a generated public key

I have a zsh script with which I logged into a remote host to copy some folders. The system asks me each time to give the password of the local host which I want to bypass, otherwise I have to enter ...
ecjb's user avatar
  • 455
0 votes
0 answers
226 views

SSH Keys Not Recognized?

I have two Debian (11 and 12) systems. I'm trying to verify ssh access from server A to server B via keys, following this video https://www.youtube.com/watch?v=vINn1MIrf7o. I try to use the keys, ...
Rez's user avatar
  • 1
-1 votes
1 answer
79 views

Why git authentications works through SSH keys?

Question in the title, but let me detail more. Excluding the ID/Password method on git CLI, we generate a SSH key and add the public key to the remote server. Why don't we have SSH-less public-key ...
discouragedone's user avatar
1 vote
2 answers
164 views

Can two linux users share .ssh folder keys to connect to an SSH server

I have two linux users user1 - regular account with auth key stored in /home/user1/.ssh/ user2 - service account without home directory How can user2 access user1's keys to connect to the remote ...
try.aaam's user avatar
0 votes
1 answer
32 views

I try to copy a file from a GCP instance to my local machine, but powershell gives me a "Permission denied: (publickey)"

I created a GCP instance, and I created a private and public key on kali linux, I saved this key in the metadata of GCP, so I can access the instance through my kali machine. Then, I need to copy a ...
Christian Ramírez's user avatar
3 votes
2 answers
1k views

SSH host key not recognized

At my new hosting provider, they allowed SSH for my account, but they only sent me port, server address, username, password, but no key. When I try to log in with PuTTY, it logs in, but I get the ...
bencuri's user avatar
  • 31
0 votes
0 answers
31 views

Is the key in ~/.ssh/known_hosts different from the ssh public key of the remote host?

I believe it is because at this point, the remote host has not even necessarily generated an ssh key. This phase is during server authentication, in which I believe that the remote server gives a ...
displayname12345's user avatar
0 votes
1 answer
32 views

How to change the private key passphrase in lsh?

info lsh manual covers how to create a keypair and protect the private key with a passphrase. The manual does not tell how to change the passphrase or how to decode the private key, which is stored as ...
Roman Riabenko's user avatar
0 votes
2 answers
432 views

ProxyJump in login->compute node still requires password

I want to ssh from LAPTOP to COMPUTE but have to go through LOGIN, and COMPUTE and LOGIN share users (so no separate ssh configs). This question is similar to this one with the exception that in my ...
Bram Vanroy's user avatar
1 vote
2 answers
3k views

How can I encrypt a password in a bash script?

I created a shell alias that runs a simple shell script. The script is shown below, it sshs into another Linux machine: #!/bin/bash sshpass -p 'P@ssw0rd' ssh username@hostname I would like to encrypt ...
OpenSourceSingh's user avatar
0 votes
1 answer
3k views

How do I convert an OpenSSH-generated ED25519 key to the PEM format?

I am trying to convert an OpenSSH-generated private host key to the PEM format, so that I can use it also in dropbear-initramfs. However, when trying to do so using the ssh-keygen program, I am ...
liori's user avatar
  • 630
-1 votes
1 answer
265 views

SSH: Use key-pair authentication, but if not present default to password

I am hoping to find a way to configure our systems so that it will work with ssh-key-pair authentication, but if not present, fail over to requiring a password, and fail login if incorrect password is ...
jewettg's user avatar
  • 107
0 votes
0 answers
641 views

SFTP nologin user public key auth will not work

Here is the user's configuraitons cat /etc/passwd | grep sftp sftpadmin:x:1001:1001::/backups:/sbin/nologin Created directory structure mkdir -p /backups/.ssh/ touch /backups/.ssh/authorized_keys ...
Dave's user avatar
  • 621
1 vote
2 answers
84 views

SSH is not authenticating by SSH key

I cannot login to my server by SSH keys. I copied public key name.pub to my server using ssh-copy-id. If I then run ssh -i name.key root@server, I have to insert the server's password instead of being ...
DaPurr's user avatar
  • 21
1 vote
1 answer
366 views

PKCS#11 provider in OpenSSH: Is it possible to cache PIN?

I use a RSA key on a smartcard with an OpenSSH client. The smartcard is read by a smartcard reader with a pinpad. The key is protected with a PIN. Is it possible to cache the PIN somehow? I don't ...
d.c.'s user avatar
  • 887
4 votes
3 answers
10k views

Copy ssh keys to a new computer

I'm changing between computers. On an old one I have SSH keys (to remote servers, AWS, etc...) Is it considered to be a good practice just to copy the .ssh folder to a new computer ? If not, what is a ...
Michael D's user avatar
  • 163
-5 votes
0 answers
56 views

SSH: Permission Denied (publickey,password) [closed]

new to cybersecurity bear w/me. Just a learning situation is all, to progress onwards I took it far as I could it asked me to prepare & encode the PAYLOAD etc. I did those 4 steps. Why after ...
ScreamGPT's user avatar
-2 votes
1 answer
2k views

SSH: Permission Denied (publickey,password)

new to cybersecurity bear w/me. Just a learning situation is all, to progress onwards I took it far as I could it asked me to prepare & encode the PAYLOAD etc. I did those 4 steps. Why after ...
ScreamGPT's user avatar
0 votes
1 answer
65 views

When exchanging keys between source and target systems, does local account have to exist on a remote system as well?

Full rephrase: Local system server_local has an account username_local. I am logging under this account, generate a public key and send it to the remote system server_remote, where it is added to the ...
access_granted's user avatar
0 votes
0 answers
152 views

Which SSH setting takes precedence with Git?

Since I am sharing a login on a Alma Linux server with some colleagues, I was trying to better understand the precedence different settings take. We mainly use the server to run time-consuming Python ...
winkmal's user avatar
  • 101
1 vote
2 answers
2k views

Fail to ssh login with public key

I try to use a public key to connect to a remote server running centos7. I generated a key by ssh-keygen then copy the key to the server by ssh-copy-id [email protected] the authorized_keys ...
Rekkhan's user avatar
  • 11
0 votes
1 answer
2k views

Gitlab push/pull: Git asks for password of user git

I set up SSH Keys on my Windows Machine and then I added the key in my gitlab account according to the setup guide: Gitlab SSH KEY But I ran into an issue: When I try to test the connection with ssh -...
Kektuto's user avatar
0 votes
1 answer
88 views

How to "merge" sln files?

Im pretty new to c++ and want to add keyauth to my simple application. I want to use this (https://github.com/KeyAuth/KeyAuth-CPP-Example) as a base. How do I add the solution file to my existing ...
Nikolaus's user avatar
-4 votes
1 answer
323 views

ssh passwordless login to root account

When installing Kali-Linux distro version 6.0 the assisted installation process ask for a user name (I entered Joe, could be any other...) and it created the user Joe (with the same privileges as the ...
ZEE's user avatar
  • 277
2 votes
1 answer
2k views

Is there a way to check when an ssh key from authorized_keys was last used?

My authorized_keys on some of my debian flavoured servers have become bloated with keys from old PCs, etc. Is there a way I can tell which key has been used to log in? I would like to clean it up. I ...
JoSSte's user avatar
  • 195
2 votes
1 answer
4k views

Rocky Linux 9 not accepting SFTP connections from old Dreamweaver version (no matching host key type found. Their offer: ssh-rsa,ssh-dss)

Running Rocky Linux 9 on server and I am trying to connect by password, not by key... It works when connecting with Putty on port 22, but when I try to connect with an old Dreamweaver version, ...
adrianTNT's user avatar
  • 603
0 votes
1 answer
352 views

New SSH key pairs can not be resolved

I have removed the complete know_hosts and config as well as public keys and private keys under the folder ~/.ssh/. I also removed all public keys in github. Then I generated a new ed25519 key pair. ...
helloword's user avatar
1 vote
1 answer
747 views

Ansible - Push authorized key to multiple host groups with different passwords

I want to push a new user's public key to a host invetory using Ansible. For that, a playbook was created like the following example. --- - name: vms1 - Authorize hosts with pub key hosts: vms1 ...
markfree's user avatar
  • 365

1
2 3 4 5
8