I am sorry for the answer below because I just discovered with which ssh that I am using the version of OpenSSH that I compiled myself.
# which ssh /usr/local/bin/ssh
After successfully deleting local ssh, openssh-server and openssh-client .
I came across this and used a similar method that I used to commit https://askubuntu.com/a/854145/348754 .
I found the following error.
Creating SSH2 ECDSA key; this may take some time ...OpenSSL version mismatch. Built against 1000106f, you have 1000207f dpkg: error processing package openssh-server (--configure): subprocess installed post-installation script returned error exit status 255
I need to edit / var / lib / dpkg / info / openssh -server.postinst and comment on the following lines.
#create_key "Creating SSH2 ECDSA key; this may take some time ..." \ # "$hostkeys" /etc/ssh/ssh_host_ecdsa_key -t ecdsa #create_key "Creating SSH2 ED25519 key; this may take some time ..." \ # "$hostkeys" /etc/ssh/ssh_host_ed25519_key -t ed25519
f01
source share