openssh - how to completely purge

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
johnb0647
Level 1
Level 1
Posts: 33
Joined: Sun Mar 11, 2012 10:02 am

openssh - how to completely purge

Post by johnb0647 » Thu Aug 10, 2017 3:23 am

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

User avatar
catweazel
Level 19
Level 19
Posts: 9504
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: openssh - how to completely purge

Post by catweazel » Thu Aug 10, 2017 3:43 am

Presumably it is purged in this manner:

Code: Select all

sudo apt-get purge ssh
¡uʍop ǝpısdn sı buıɥʇʎɹǝʌǝ os ɐıןɐɹʇsnɐ ɯoɹɟ ɯ,ı

johnb0647
Level 1
Level 1
Posts: 33
Joined: Sun Mar 11, 2012 10:02 am

Re: openssh - how to completely purge

Post by johnb0647 » Mon Aug 14, 2017 9:55 pm

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.

JB

User avatar
catweazel
Level 19
Level 19
Posts: 9504
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: openssh - how to completely purge

Post by catweazel » Mon Aug 14, 2017 10:04 pm

Try these locations:

Code: Select all

/usr/local/ssl/openssl.cnf
/usr/lib/ssl/openssl.cnf
/etc/ssl/openssl.cnf
Also check the environment for $OPENSSL_CONF

Code: Select all

env | grep "OPENSSL"
Also see: http://manpages.ubuntu.com/manpages/xen ... .5ssl.html
Cheers.
¡uʍop ǝpısdn sı buıɥʇʎɹǝʌǝ os ɐıןɐɹʇsnɐ ɯoɹɟ ɯ,ı

johnb0647
Level 1
Level 1
Posts: 33
Joined: Sun Mar 11, 2012 10:02 am

Re: openssh - how to completely purge - SOLVED

Post by johnb0647 » Fri Aug 18, 2017 7:43 pm

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.

Post Reply

Return to “Software & Applications”