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
36 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
265 views
AlmaLinux 9 : How to set up existing SSH keys for root (Or rather, why is this current set up not working?)
I have an Alma Linux 9 server machine with SSH root access through a custom port. The access is fine but should be with SSH Keys. We have keys, but we need to give the Public Key to the AlmaLinux ...
0 votes
1 answer
144 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 ...
0 votes
1 answer
174 views
How to connect and browse files of remote server via Midnight Commander's Shell link (copy files over SSH) if the private key requires password?
There are endless number of helpful articles and answers on how set up ~/.ssh/config (e.g., this one's pretty good), but none of them mentions what to do if the private key is also password protected.
1 vote
2 answers
126 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 ...
1 vote
3 answers
164 views
Authenticate with a physical button
I have a Raspberry PI Pico laying around and I was thinking about creating a device that, when I need to authenticate myself on Linux, I could just click a button soldered to the Pico, which would ...
0 votes
1 answer
85 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
1 answer
51 views
Does the presence of a .ssh directory force remote access via Public key authentication? [closed]
Context: 24.04 Ubuntu on Raspberry Pi The default user is ubuntu. For this discussion let's define different scenarios: the directory /home/ubuntu/.ssh does not exist an empty directory exists as: ...
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
81 views
Can the filesystem that holds an SSH key be dismounted after the SSH connection is made?
I need to create long lasting SSH sessions with password-less keys without leaving the keys available in the clear once the session starts. Is it possible to dismount the filesystem with the key ...
0 votes
1 answer
78 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
0 answers
428 views
Is it possible to pass Basic Auth credentials to apt-get as command line arguments?
I use Alt Linux 10.2. The only way to store Basic Auth credentials supported here is to write them directly to the sources.list file: rpm [p10] http://login:[email protected] x86_64 classic In ...
0 votes
1 answer
277 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
1 answer
100 views
How to start openssh server at first run with public key authentication only?
When we do sudo apt install -y openssh-server it installs by default with password authentication which could be unsafe if the password is too easy, and it already starts listening for connections. ...
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 ...