/srv/irclogs.ubuntu.com/2022/10/22/#ubuntu-server.txt

imihi, what makes this motd-style output: https://ibb.co/d79hF2z12:29
=== elastic_dog is now known as Guest223
konstruktoidhttps://wiki.ubuntu.com/UpdateMotd imi 12:56
imithanks12:57
fooI've got 2 ubuntu systems, primary and secondary. I want secondary to backup primary. I was going to create ssh keys between secondary and primary and run rsync... but if I do that, I believe someone from secondary can ssh into primary. Is there a way to only enable rsync somehow and not ssh for a specific IP or such? 15:05
ahasenackyou can force a command in the authorized_keys for that key15:06
foooh! Interesting, that might do it. This secondary system is at someone's property... it's probably fine but it would be a security risk. Granted, I guess someone would need to login to that system to do this so it may be fine15:07
ahasenackfoo: check the sshd manpage, search for "AUTHORIZED_KEYS FILE FORMAT"15:07
ahasenackcommand="command"15:08
ahasenack             Specifies that the command is executed whenever this key is used for authentication.  The command supplied by the user (if any) is ignored. 15:08
fooahasenack: thank you! 15:12
fooTesting now 15:12
fooahasenack: ok, it seems to sorta be working, I just got to get the rsync command to actually work. command="/usr/bin/rsync -azv /home",no-port-forwarding ssh-ed25519 AAAA... doesn't seem to be working "protocol version mismatch -- is your shell clean?"15:17
foojjjj/w 215:25
ahasenackwhen rsync says that, it usually means there is "garbage" in the stream17:30
ahasenackthis might be a bit more complicated than I thought17:44
ahasenackfound this, maybe it helps: https://gist.github.com/jyap808/870071417:44

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!