BackupPC-users

[BackupPC-users] Exchanging keys

2017-05-14 17:44:21
Subject: [BackupPC-users] Exchanging keys
From: Bob Katz <bobkatz AT digido DOT com>
To: backuppc-users AT lists.sourceforge DOT net
Date: Sun, 14 May 2017 17:43:38 -0400
Dear Richard:

Again, you're a godsend. I can root ssh to the Thecus!

But I wish exchanging keys were that simple with the Thecus NAS. The Thecus has a sandboxed operating system. Anything below /raid will be eaten up on reboot. To do keys you have to use a module called FajoSSHD that's located here on the Thecus:

Office-MacBook-Pro:~ bobkatz$ ssh [email protected]

N6850:~# cd /raid/data/module/FaJoSSHD
# ls
cgi-bin/ log.txt  Shell/   system/  www/
COPY     shell@   sys/     VERSION
N6850:/raid/data/module/FaJoSSHD#

I know that FajoSSHD keeps authorized keys in here:

N6850:/raid/data/module/FaJoSSHD/system/etc/ssh/users/root# ls
authorized_keys

But I cannot figure out where the public key you want me to transfer should go. Would it go into that same directory? If not, I can explore any other directories. Somewhere in this hierarchy I need to put the key which I generated on my Fedora server.

I'm going to try your code and see if I can get it to work using the above url. Stand by.

Thanks,


Bob


On 5/10/17 6:46 PM, Richard Shaw wrote:


The easy way to exchange keys on Fedora to use rsync over ssh assuming
you're using root to do the backup on the clien:

(as root)
# su -s /bin/bash -l backuppc
# ssh-keygen
(don't add a passphrase, it would defeat the purpose)
# ssh-copy-id root@<client>

After that you should be able to "ssh root@<client>" and it login without
prompting for a password.

Thanks,
Richard



--

If you want good sound on your album, come to
Bob Katz 407-831-0233 DIGITAL DOMAIN MASTERING STUDIO
Author: Mastering Audio              
Digital Domain Website

No trees were killed in the sending of this message. However a large number
of electrons were terribly inconvenienced.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

ADSM.ORG Privacy and Data Security by KimLaw, PLLC