SSH connection refused
On my recently installed Ubuntu 24.04 laptop.
When I attempted to ssh into my git server my ssh connection was refused.
I checked for all the usual errors and the problem persisted.
This version of ubuntu uses a key management tool called "passwords and keys".
To get that to play well with my keys, the course of least resistance was to remember that it likes to find ssh keys in ${HOME}/.ssh/ and it likes to find both private and private key files in there.
When I conform to that restriction ssh behaves correctly with my github account repository.
This shows any such keys in its list.
ssh-add -l
However trying to connect to my own repo server still yielded: connection refused "public key"
The measure that fixed that issue was to add two lines to the file: /etc/ssh/ssh_config.
Immediately below the "Host *" line.
Host *
PubkeyAcceptedKeyTypes=+ssh-rsa
HostKeyAlgorithms=+ssh-rsa