Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > uk.comp.os.linux > #23586
| From | Java Jive <java@evij.com.invalid> |
|---|---|
| Newsgroups | uk.comp.os.linux |
| Subject | Re: Help needed after upgrade Reply Take two and a half. |
| Date | 2025-04-29 18:29 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <vur2ab$2a1tk$1@dont-email.me> (permalink) |
| References | (9 earlier) <vpd1vp$1pht$1@dont-email.me> <vpf7je$h3kb$1@dont-email.me> <vpfab8$hc0a$1@dont-email.me> <vuqps2$2155f$1@dont-email.me> <vuqv7v$26c6h$1@dont-email.me> |
On 2025-04-29 17:40, Daniel James wrote:
> On 29/04/2025 16:05, Davey wrote:
>> I am still looking for a way to include the:
>> ssh -v-oHostKeyAlgorithms=+ssh-rsadavid@192.168.1.164
>>
>> string into my rsync instructions.
>
> Some spaces missing there, I think. Do you mean:
>
> ssh -v -oHostKeyAlgorithms=+ssh-rsa david@192.168.1.164
>
> ?
>
> You may be able to do the same thing with rsync ... that is:
>
> rsync [options] -e "ssh -oHostKeyAlgorithms=+ssh-rsa" \
> david@192.168.1.164:/path otherpath
>
> (where the meaning of "[options]", "path", and "otherpath" should be
> obvious).
>
> You may also be able to put the HostKeyAlgorithms option into a
>
> ~/.ssh/config
>
> file (create one if necessary).
>
> I agree that it's not obvious that the ssh in '-e "ssh"' can take
> arguments, but apparently it can.
>
> See here:
>
> https://discussion.fedoraproject.org/t/rsync-ssh-problems-since-upgrading-to-36/75306/7
I think the above should be possible, but IMO there is a simpler way,
which is to configure appropriately the rsync daemon on the
destination/server machine. To do this:
1) Configure one or more appropriate rsync 'share(s)' or virtual
drive(s) for the backup files. This is usually done in
/etc/rsyncd.conf, but for embedded boxes other possibilities might be
/etc/config/rsyncd.conf or /opt/etc/rsyncd.conf - for example:
# rsync daemon configuration
pid file = /var/run/rsyncd.pid
hosts allow = 192.168.1.0/255.255.255.0, 169.254.0.0/255.255.0.0
# Quite possibly other global options as required
[BackUp]
path = /path/to/backup/location
comment = PC backup files
2) Start rsync as a daemon at PC boot time. Traditionally this used to
be done by a script in /etc/init.d, and still is here in Ubuntu 22, but
nowadays might be via something like systemctl. Manually a suitable
command-line might be something like:
/usr/bin/rsync --daemon --config=/etc/rsyncd.conf
Then, from the source PC, you can just type or create a script
containing something like (note the trailing slashes on both source and
destination paths, and beware unintended line-wrap, this should be all
one line):
rsync [usual options as desired] /source/path/with/trailing/slash/
rsync://user@server/BackUp/sub-path/as/desired/with/trailing/slash/
Notes:
If the user requires a password, then you can specify that in the script
environment using the variable RSYNC_PASSWORD. For better security, you
can specify an rsync-only user and password combo in the conf file using
(I'm afraid I can't remember how to find the encrypted version of the
above password string to set here, but most probably I got it from the
man pages):
rsync user = whoever
rsync enpswd = whatever # (must be encrypted to match what is in plain
text in the RSYNC_PASSWORD variable used by the rsync command)
AFAICR, the rsync protocol encrypts data during transit without needing
recourse to ssh, but you may wish to check my ageing memory on that point.
--
Fake news kills!
I may be contacted via the contact address given on my website:
www.macfh.co.uk
Back to uk.comp.os.linux | Previous | Next — Previous in thread | Next in thread | Find similar
Help needed after upgrade Davey <davey@example.invalid> - 2025-02-14 16:27 +0000
Re: Help needed after upgrade Theo <theom+news@chiark.greenend.org.uk> - 2025-02-14 17:57 +0000
Re: Help needed after upgrade Davey <davey@example.invalid> - 2025-02-14 19:56 +0000
Re: Help needed after upgrade Reply Take two. Davey <davey@example.invalid> - 2025-02-16 19:10 +0000
Re: Help needed after upgrade Reply Take two. Daniel James <daniel@me.invalid> - 2025-02-16 23:35 +0000
Re: Help needed after upgrade Reply Take two. Davey <davey@example.invalid> - 2025-02-17 08:46 +0000
Re: Help needed after upgrade Reply Take two. Daniel James <daniel@me.invalid> - 2025-02-17 16:59 +0000
Re: Help needed after upgrade Reply Take two. Davey <davey@example.invalid> - 2025-02-17 17:50 +0000
Re: Help needed after upgrade Reply Take two. Davey <davey@example.invalid> - 2025-02-20 09:59 +0000
Re: Help needed after upgrade Reply Take two. Daniel James <daniel@me.invalid> - 2025-02-20 14:41 +0000
Re: Help needed after upgrade Reply Take two. Davey <davey@example.invalid> - 2025-02-20 17:45 +0000
Re: Help needed after upgrade Reply Take two. Davey <davey@example.invalid> - 2025-02-20 17:46 +0000
Re: Help needed after upgrade Reply Take two. Davey <davey@example.invalid> - 2025-02-22 17:36 +0000
Re: Help needed after upgrade Reply Take two. Richard Kettlewell <invalid@invalid.invalid> - 2025-02-22 21:11 +0000
Re: Help needed after upgrade Reply Take two. Davey <davey@example.invalid> - 2025-02-22 22:47 +0000
Re: Help needed after upgrade Reply Take two. Davey <davey@example.invalid> - 2025-02-23 12:45 +0000
Re: Help needed after upgrade Reply Take two. Richard Kettlewell <invalid@invalid.invalid> - 2025-02-23 13:43 +0000
Re: Help needed after upgrade Reply Take two. Davey <davey@example.invalid> - 2025-02-23 14:16 +0000
Re: Help needed after upgrade Reply Take two. Daniel James <daniel@me.invalid> - 2025-02-23 13:27 +0000
Re: Help needed after upgrade Reply Take two. Davey <davey@example.invalid> - 2025-02-23 14:11 +0000
Re: Help needed after upgrade Reply Take two. Richard Kettlewell <invalid@invalid.invalid> - 2025-02-23 17:06 +0000
Re: Help needed after upgrade Reply Take two. Davey <davey@example.invalid> - 2025-02-23 17:34 +0000
Re: Help needed after upgrade Reply Take two. Daniel James <daniel@me.invalid> - 2025-02-23 19:40 +0000
Re: Help needed after upgrade Reply Take two. Davey <davey@example.invalid> - 2025-02-23 22:04 +0000
Re: Help needed after upgrade Reply Take two. Daniel James <daniel@me.invalid> - 2025-02-24 16:52 +0000
Re: Help needed after upgrade Reply Take two. Davey <davey@example.invalid> - 2025-02-24 17:17 +0000
Re: Help needed after upgrade Reply Take two. Daniel James <daniel@me.invalid> - 2025-02-23 19:33 +0000
Re: Help needed after upgrade Reply Take two. Richard Kettlewell <invalid@invalid.invalid> - 2025-02-23 23:23 +0000
Re: Help needed after upgrade Reply Take two. Daniel James <daniel@me.invalid> - 2025-02-24 16:31 +0000
Re: Help needed after upgrade Reply Take two. Richard Kettlewell <invalid@invalid.invalid> - 2025-02-24 20:20 +0000
Re: Help needed after upgrade Reply Take two and a half. Davey <davey@example.invalid> - 2025-04-29 16:05 +0100
Re: Help needed after upgrade Reply Take two and a half. Daniel James <daniel@me.invalid> - 2025-04-29 17:40 +0100
Re: Help needed after upgrade Reply Take two and a half. Davey <davey@example.invalid> - 2025-04-29 17:44 +0100
Re: Help needed after upgrade Reply Take two and a half. Java Jive <java@evij.com.invalid> - 2025-04-29 18:29 +0100
Re: Help needed after upgrade Reply Take two and a half. Richard Kettlewell <invalid@invalid.invalid> - 2025-04-29 20:33 +0100
Re: Help needed after upgrade Reply Take two and a half. Java Jive <java@evij.com.invalid> - 2025-04-29 22:16 +0100
Re: Help needed after upgrade Reply Take two and a half. Richard Kettlewell <invalid@invalid.invalid> - 2025-04-29 23:17 +0100
Re: Help needed after upgrade Reply Take two and a half. Java Jive <java@evij.com.invalid> - 2025-04-29 23:23 +0100
Re: Help needed after upgrade Reply Take two and a half. Richard Kettlewell <invalid@invalid.invalid> - 2025-04-30 08:12 +0100
Re: Help needed after upgrade Reply Take two and a half. Java Jive <java@evij.com.invalid> - 2025-04-30 17:08 +0100
Re: Help needed after upgrade Reply Take two and a half. Davey <davey@example.invalid> - 2025-05-04 17:14 +0100
Re: Help needed after upgrade Reply Take two and a half. Davey <davey@example.invalid> - 2025-05-05 07:56 +0100
Re: Help needed after upgrade Reply Take two. Gordon <Gordon@leaf.net.nz> - 2025-05-24 08:00 +0000
Re: Help needed after upgrade Reply Take two. Richard Kettlewell <invalid@invalid.invalid> - 2025-05-24 10:55 +0100
Re: Help needed after upgrade Reply Take two. Gordon <Gordon@leaf.net.nz> - 2025-05-24 07:50 +0000
Re: Help needed after upgrade Test post Davey <davey@example.invalid> - 2025-02-16 19:08 +0000
csiph-web