Questions tagged [ssh-keys]
an authorization mechanism for SSH involving public-key cryptography.
801
questions
1
vote
1
answer
90
views
How do I enable Google Authenticator (TOTP) with SSH keys with a passphrase on Debian 12?
TL;DR: I ran google-authenticator when logged in as the root user. I should've run it as my normal user account instead.
I have just installed Debian 12 on a spare Apple Mac Mini. I want to control it ...
0
votes
2
answers
128
views
Creating an ssh keypair for AWS Lightsail/EC2 instances doesn't work as expected
I've created a fair few SSH keypairs in my days but AWS seems to handle them differently. I'm using AWS Lightsail and it has a notion of 'default' keypairs. This is fine for the 'normal' user that AWS ...
1
vote
1
answer
252
views
Even if SSH is set up, it always asks for the password when logging into the server
I have an Ubuntu server. I use ssh to access it. It worked fine at first. When user@IP is given along with SSH key, it will log into the server without asking for password. But recently, even with SSH,...
0
votes
1
answer
198
views
ssh from CL using keyfile from Windows client to Linux server
This sort of thing drives me crazy - hopefully obvious solution(s). Have keys on Win 10 laptop, and on one of my Linux servers. If I use puTTY, where I can explicitly browse to the keyfile on the ...
0
votes
1
answer
2k
views
userauth_pubkey: signature algorithm ssh-rsa not in PubkeyAcceptedAlgorithms after upgrade of OpenSSH
After an upgrade I can no longer log in to my box (FreeBSD 14.0) using RSA key getting:
userauth_pubkey: signature algorithm ssh-rsa not in PubkeyAcceptedAlgorithms
in /var/logs/auth.log
on every ...
2
votes
0
answers
317
views
Server host key changing frequently
Im trying to connect to my ubuntu server via ssh from Windows. Unlike my another ubuntu server from same dedicated server hosting, the server host key changing frequently.
I get WARNING: REMOTE HOST ...
0
votes
1
answer
95
views
Is there a solution to manage users in some systems or at least in linux?
I work somewhere with a lot of Linux and VPS servers. When someone joins the company, other staff members need to add his SSH key to each server; conversely, if someone leaves, all of his SSH keys ...
0
votes
0
answers
64
views
Custom Linux AMI: How does AWS know where to install account SSH .PEM files when an AMI is provisioned?
We are building a custom AMI from a template EC2 EBS instance snapshot (Oracle Linux 8). This page shows there are many different user names depending on the AMI you choose:
https://docs.aws.amazon....
1
vote
1
answer
226
views
Remote Linux server GitHub permission denied publickey issues
I am experiencing publickey permission issues when trying to pull a private repo from GitHub to a remote Linux server.
Update
Ran ssh -v -o IdentitiesOnly=yes -i ~/.ssh/id_rsa [email protected] command ...
0
votes
0
answers
193
views
How safely obtain and check host public key for `known_hosts`?
For a newly deployed instance I get the following message for the first time SSH connection:
The authenticity of host '[hostname] ([IP address])' can't be established.
RSA key fingerprint is [key ...
10
votes
4
answers
5k
views
How do I prevent users from messing with their own .ssh folder?
I'm administrating a RedHat server where users log in through SSH with private/pub key based authentication.
I'd like to prevent them from accidentally changing / deleting /chmoding the content of ...
4
votes
2
answers
1k
views
How to prevent OpenSSH from creating a new known_hosts file every time it updates it?
It seems that every time I accept a new host key, ssh (I've tested 8.6p1 and 9.3p2) does the following steps:
Move the known_hosts file to known_hosts.old;
Create a new known_hosts file;
Copy the ...
1
vote
0
answers
163
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 ...
1
vote
2
answers
1k
views
How to remove all lines with the same public key from known_hosts?
Let's imagine the following scenario.
I have an host key ABCDEF1234 for a given hostname, so my known_hosts file looks like this (unhashed version):
example.com ssh-rsa ABCDEF1234
Now I connect to it,...
0
votes
1
answer
81
views
Home directory, user database and key-based authentication
I want to share it NFS share with my users just like the home-directories (traditional way), but I don't want to create the users instead I want to get the server integrated with the github or google ...