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.
423 questions
0
votes
0
answers
29
views
HAproxy 2.6.12 TCP LB with NoMachine NX servers (SSH-like)
I tried to install HAProxy 2.6.12 in TCP mode to do load balancing (round robin) between 2 NoMachine 8.16.1 ECS (Enterprise Cloud Server) accepting NX protocol (SSH-like).
NoMachine is a remote ...
0
votes
1
answer
123
views
SSH Stuck waiting for reply after offering public key
Info
I have 2 remote machines, both are Linux and same OS version.
When I tried to SSH to the machine as one of the user inside via public key, machineA works but machineB get stucked after offerring ...
1
vote
2
answers
111
views
SSH: How to verify the passphrase of a key but without doing an attempt of ssh connection?
About SSH I know the following command works:
ssh -i id_rsa <username>@<ip>
Of course:
The remote server must be running
The passphrase of the id_rsa key is requested and if it is valid ...
0
votes
1
answer
71
views
When do you have to check the fingerprint of a PGP key in an independent way during initial contact?
For brevity I talk about PGP, but GnuPG or OpenPGP are meant as well and gpg is the OpenPGP encryption and signing tool for it.
When initially establishing an email connection with someone, both ...
0
votes
0
answers
2k
views
SSH failing with "ssh_rsa_verify: cannot handle type rsa-sha2-256"
I have an old Server (Centos 4 - yes it will be upgraded but not yet!) and a new Backup machine (Rocky 9.5). I previously had rsync from the server to a previous incarnation of the backup machine (...
0
votes
1
answer
69
views
How to automate key distribution prior to Ansible being deployed?
How do admins typically distribute Ansible .pub keys to clients in an early environment? Do they just script that can run ssh-copy-id to multiple machines?
I've looked at other forums and users said ...
0
votes
1
answer
263
views
SSH public key authentication fails for root user with debug error 51 on AlmaLinux 9
I am trying to connect to a remote SSH server as the root account, using public keys. The login fails and ssh reports:
debug1: Will attempt key: mykey.pem explicit
debug2: pubkey_prepare: done
...
0
votes
0
answers
2k
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 ...
2
votes
1
answer
100
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://...
1
vote
1
answer
183
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 ...
0
votes
0
answers
71
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 ...
0
votes
0
answers
52
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 ...
0
votes
1
answer
448
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 ...
1
vote
0
answers
663
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. ...
2
votes
0
answers
246
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 ...
0
votes
0
answers
128
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 navigating to the Downloads folder (where my key pair ....
0
votes
0
answers
43
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 ...
0
votes
0
answers
413
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, ...
1
vote
2
answers
401
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 ...
3
votes
2
answers
2k
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 ...
0
votes
1
answer
47
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 ...
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 ...
-1
votes
1
answer
367
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 ...
3
votes
1
answer
980
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 ...
-5
votes
0
answers
57
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 ...