After upgrading from 22.04 to 24.04 through do-release-upgrade, GNOME keyring no longer manages ssh key passwords when using Plasma. (Still working on GNOME).

After some digging, it is noticed that SSH_ASKPASS is set to /usr/bin/ksshaskpass and didn’t find where it is set; however ssh-askpass isn’t working properly.

As said in https://wiki.archlinux.org/title/KDE_Wallet#Using_the_KDE_Wallet_to_store_ssh_key_passphrases, will use this script in .bash_profile as a workaround:

# https://wiki.archlinux.org/title/KDE_Wallet#Using_the_KDE_Wallet_to_store_ssh
if [ "$SSH_ASKPASS" == "/usr/bin/ksshaskpass" ]; then
  export SSH_ASKPASS_REQUIRE=prefer
fi