Page 1 of 1

openssh - how to completely purge

Posted: Thu Aug 10, 2017 3:23 am
by johnb0647
I want to create RSA key paired ssh links from my computer to each of the other two in my house (Max, Lolita & Han). Purpose is to back up each user to all three computers, probably with freefilesync or rsync, so if one or two go down users can continue work until repairs are made.

I've been messing with it for months, complicated by some hardware damage and replacement so there might be a bunch of fragments laying around from previous attempts.

Two weeks ago I had it working partially both ways between (Max) and (Lolita). I say partially because I still had to make connections manually since each time ssh asked (twice) if I really trusted "Lolita" and the whole purpose is eventual automated backups.

Suddenly it stopped working completely. The old links (in Nemo) bring up:
"Could not display "sftp://johnb@lolita/home/johnb". Access was denied."

Possibly it's updated software. We just updated from LM 18.1 to LM 18.2 but I checked with sshd -V and we all seem to have the same version.

I'm thinking it would be best to purge all trace of ssh from all three computers and start over fresh but I can't find a list of every place there may be fragments remaining.

Any guidance would be appreciated.

USING LM 18.2 64bit
OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g 1 Mar 2016

Re: openssh - how to completely purge

Posted: Thu Aug 10, 2017 3:43 am
by catweazel
Presumably it is purged in this manner:

Code: Select all

sudo apt-get purge ssh

Re: openssh - how to completely purge

Posted: Mon Aug 14, 2017 9:55 pm
by johnb0647
I hope that's not true and that there are some config remnants left somewhere because I already tried that, rebooted, re-installed and re-config'ed but still got the same result.

Thanks for the reply.


Re: openssh - how to completely purge

Posted: Mon Aug 14, 2017 10:04 pm
by catweazel
Try these locations:

Code: Select all

Also check the environment for $OPENSSL_CONF

Code: Select all

env | grep "OPENSSL"
Also see: ... .5ssl.html

Re: openssh - how to completely purge - SOLVED

Posted: Fri Aug 18, 2017 7:43 pm
by johnb0647
OK - I got it.

Unless I did something else that slips my mind, it was
apt-get remove openssh-server ssh
apt-get purge openssh-server ssh
manually delete /etc/ssh and ~/.ssh
reinstall and reconfigure everything.

I'm pretty sure I had already tried everything but the manual delete so it looks like that was it.

Sorry to be vague but I just turned 70 and I'm not as sharp as I once was.

Thanks to everyone for the help.