It seemed to work for me. I did it just as a test, but otherwise agree with the comments from the others.
Anyway, I changed the sshd_config file as so:
Code:
doug@s19:~/config/etc/ssh$ diff -u sshd_config.24.04.original sshd_config
--- sshd_config.24.04.original 2024-09-02 10:58:17.367097735 -0700
+++ sshd_config 2024-09-03 20:11:45.040473573 -0700
@@ -29,7 +29,7 @@
# Authentication:
-#LoginGraceTime 2m
+LoginGraceTime 1440m
#PermitRootLogin prohibit-password
#StrictModes yes
#MaxAuthTries 6
doug@s19:~/config/etc/ssh$
And the connection status while the client rsync waits for the password:
Code:
doug@s19:/media/backup/backup/rpi3$ ss -o -t
State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
ESTAB 0 52 192.168.111.136:ssh 192.168.111.122:54934 timer:(on,232ms,0)
ESTAB 0 0 192.168.111.136:ssh 192.168.111.122:63092 timer:(keepalive,119min,0) <<< It is this one
ESTAB 0 0 192.168.111.136:ssh 192.168.111.122:50446 timer:(keepalive,87min,0)
doug@s19:/media/backup/backup/rpi3$
I'll edit this later with more entries, but it should wait for a day. I tested shorter timeouts already.
EDIT: The above was about 11 hours ago. I entered the password for the waiting rsync command just now and it worked fine.