Hi.

On Sat, 11 Jun 2022 15:48:56 -0400 Jeffrey Ross via users wrote:

> /usr/share/crypto-policies/DEFAULT/opensshserver.txt and add ^ssh-rsa at 
> the beginning of the PubkeyAcceptedAlgorithms list will allow users to 
> login again, however anytime there is an update to the crypto stuff on 
> the system my change gets wiped out.

> So my questions are
> 1) which file should I be updating so my changes aren't removed all the time

Since /etc/ssh/sshd_config finally allow, since Fedora 35, to include
.conf files under /etc/ssh/sshd_config.d/, I have chosen for that problem to
make a:

 /etc/ssh/sshd_config.d/20-X.conf

that gets loaded before

 /etc/ssh/sshd_config.d/50-redhat.conf

that include itself: /etc/crypto-policies/back-ends/opensshserver.config

In 20-X.conf:

    PubkeyAcceptedAlgorithms      +ssh-rsa

You may need also:

# From /etc/crypto-policies/back-ends/opensshserver.config
#  then add ,ssh-rsa
# No +PARAM allowed for HostKeyAlgorithms (seems)
HostKeyAlgorithms           
ecdsa-sha2-nistp256,ecdsa-sha2-nistp256-cert-...@openssh.com,sk-ecdsa-sha2-nistp...@openssh.com,sk-ecdsa-sha2-nistp256-cert-...@openssh.com,ecdsa-sha2-nistp384,ecdsa-sha2-nistp384-cert-...@openssh.com,ecdsa-sha2-nistp521,ecdsa-sha2-nistp521-cert-...@openssh.com,ssh-ed25519,ssh-ed25519-cert-...@openssh.com,sk-ssh-ed25...@openssh.com,sk-ssh-ed25519-cert-...@openssh.com,rsa-sha2-256,rsa-sha2-256-cert-...@openssh.com,rsa-sha2-512,rsa-sha2-512-cert-...@openssh.com,ssh-rsa

> 2) is adding ^ssh-rsa the best change or is there a better or more 
> proper one? (I can't get rid of putty, but would like to take the least 
> evil fix)

IMO the only better thing to do is to ask every user to not use any more
ssh-rsa keys :-(

-- 
francis
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to