Results 1 to 10 of 27

Thread: Can I tell Rsync to wait longer for a password when connecting to a remote system?

Threaded View

  1. #10
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    3,587
    Distro
    Ubuntu Development Release

    Re: Can I tell Rsync to wait longer for a password when connecting to a remote system

    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.
    Last edited by Doug S; September 4th, 2024 at 02:48 PM.
    Any follow-up information on your issue would be appreciated. Please have the courtesy to report back.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •