• ssh and rsync puzzle

    From Davey@2:250/1 to All on Sunday, October 05, 2025 13:53:08
    As readers may know, I have a desktop PC and a Laptop PC. The laptop
    recently had a memory meltdown, and so has been wiped and loaded with a
    clean version of Ubuntu 22.04.5 LTS. The desktop already has that same
    OS loaded, in fact they came from the same USB stick.
    I have been bringing the laptop back up to full running condition, the
    aim being to enable it to serve as a full backup if the desktop fails.
    Part of this involves performing frequent rsync cross-PC backup
    transfers, so that the laptop is up to date. But I am having problems
    with ssh and rsync. I can talk from the laptop to the desktop fine, but
    not the other way round. I get a 'connection refused' fault. The only
    clue is this:
    debug1: /etc/ssh/ssh_config line 19: include
    /etc/ssh/ssh_config.d/*.conf matched no files
    debug1: /etc/ssh/ssh_config line 21: Applying options for *
    But I don't know what to look for in /etc/ssh/ssh_config, if that is
    indeed the problem. Comparing the file in both PCs, I see no difference. Pinging the Laptop from the desktop works fine.

    rsync in both machines is version 3.5.7 ver. 31, the latest available
    for that OS, according to Synaptic.

    As usual, any help gratefully received to solve this conundrum. I have
    followed loads of links, none of which have helped me.

    --
    Davey.


    --- MBSE BBS v1.1.1 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From Theo@2:250/1 to All on Sunday, October 05, 2025 14:22:42
    Davey <davey@example.invalid> wrote:
    As readers may know, I have a desktop PC and a Laptop PC. The laptop
    recently had a memory meltdown, and so has been wiped and loaded with a
    clean version of Ubuntu 22.04.5 LTS. The desktop already has that same
    OS loaded, in fact they came from the same USB stick.
    I have been bringing the laptop back up to full running condition, the
    aim being to enable it to serve as a full backup if the desktop fails.
    Part of this involves performing frequent rsync cross-PC backup
    transfers, so that the laptop is up to date. But I am having problems
    with ssh and rsync. I can talk from the laptop to the desktop fine, but
    not the other way round. I get a 'connection refused' fault. The only
    clue is this:
    debug1: /etc/ssh/ssh_config line 19: include
    /etc/ssh/ssh_config.d/*.conf matched no files
    debug1: /etc/ssh/ssh_config line 21: Applying options for *
    But I don't know what to look for in /etc/ssh/ssh_config, if that is
    indeed the problem. Comparing the file in both PCs, I see no difference. Pinging the Laptop from the desktop works fine.

    rsync in both machines is version 3.5.7 ver. 31, the latest available
    for that OS, according to Synaptic.

    As usual, any help gratefully received to solve this conundrum. I have followed loads of links, none of which have helped me.

    Do you have the SSH server package installed? On Ubuntu it's
    openssh-server.

    Theo


    --- MBSE BBS v1.1.1 (Linux-x86_64)
    * Origin: University of Cambridge, England (2:250/1@fidonet)
  • From Richard Kettlewell@2:250/1 to All on Sunday, October 05, 2025 15:20:27
    Davey <davey@example.invalid> writes:
    As readers may know, I have a desktop PC and a Laptop PC. The laptop
    recently had a memory meltdown, and so has been wiped and loaded with a
    clean version of Ubuntu 22.04.5 LTS. The desktop already has that same
    OS loaded, in fact they came from the same USB stick.
    I have been bringing the laptop back up to full running condition, the
    aim being to enable it to serve as a full backup if the desktop fails.
    Part of this involves performing frequent rsync cross-PC backup
    transfers, so that the laptop is up to date. But I am having problems
    with ssh and rsync. I can talk from the laptop to the desktop fine, but
    not the other way round. I get a 'connection refused' fault.

    Almost certainly the laptop is not running an SSH server. Your next step
    is:

    sudo apt-get install openssh-server

    The only clue is this:
    debug1: /etc/ssh/ssh_config line 19: include
    /etc/ssh/ssh_config.d/*.conf matched no files
    debug1: /etc/ssh/ssh_config line 21: Applying options for *

    These messages are normal and aren’t relevant to the problem.

    --
    https://www.greenend.org.uk/rjk/

    --- MBSE BBS v1.1.1 (Linux-x86_64)
    * Origin: terraraq NNTP server (2:250/1@fidonet)
  • From Davey@2:250/1 to All on Sunday, October 05, 2025 16:25:02
    On 05 Oct 2025 14:22:42 +0100 (BST)
    Theo <theom+news@chiark.greenend.org.uk> wrote:

    Davey <davey@example.invalid> wrote:
    As readers may know, I have a desktop PC and a Laptop PC. The laptop recently had a memory meltdown, and so has been wiped and loaded
    with a clean version of Ubuntu 22.04.5 LTS. The desktop already has
    that same OS loaded, in fact they came from the same USB stick.
    I have been bringing the laptop back up to full running condition,
    the aim being to enable it to serve as a full backup if the desktop
    fails. Part of this involves performing frequent rsync cross-PC
    backup transfers, so that the laptop is up to date. But I am having problems with ssh and rsync. I can talk from the laptop to the
    desktop fine, but not the other way round. I get a 'connection
    refused' fault. The only clue is this:
    debug1: /etc/ssh/ssh_config line 19: include
    /etc/ssh/ssh_config.d/*.conf matched no files
    debug1: /etc/ssh/ssh_config line 21: Applying options for *
    But I don't know what to look for in /etc/ssh/ssh_config, if that is
    indeed the problem. Comparing the file in both PCs, I see no
    difference. Pinging the Laptop from the desktop works fine.

    rsync in both machines is version 3.5.7 ver. 31, the latest
    available for that OS, according to Synaptic.

    As usual, any help gratefully received to solve this conundrum. I
    have followed loads of links, none of which have helped me.

    Do you have the SSH server package installed? On Ubuntu it's
    openssh-server.

    Theo


    To both Theo and Richard:
    That was most confusing. Both PCs had lots of files called openssh-server-something, but when I re-stalled it from scratch, it
    then worked!
    So thank you both.

    I am battling a problem where /Pictures on the laptop refuses access,
    but I can live without that until I get it sorted out.

    Thanks!

    --
    Davey.


    --- MBSE BBS v1.1.1 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From Davey@2:250/1 to All on Sunday, October 05, 2025 22:55:14
    On Sun, 5 Oct 2025 16:25:02 +0100
    Davey <davey@example.invalid> wrote:

    On 05 Oct 2025 14:22:42 +0100 (BST)
    Theo <theom+news@chiark.greenend.org.uk> wrote:

    Davey <davey@example.invalid> wrote:
    As readers may know, I have a desktop PC and a Laptop PC. The
    laptop recently had a memory meltdown, and so has been wiped and
    loaded with a clean version of Ubuntu 22.04.5 LTS. The desktop
    already has that same OS loaded, in fact they came from the same
    USB stick. I have been bringing the laptop back up to full
    running condition, the aim being to enable it to serve as a full
    backup if the desktop fails. Part of this involves performing
    frequent rsync cross-PC backup transfers, so that the laptop is
    up to date. But I am having problems with ssh and rsync. I can
    talk from the laptop to the desktop fine, but not the other way
    round. I get a 'connection refused' fault. The only clue is this: debug1: /etc/ssh/ssh_config line 19: include
    /etc/ssh/ssh_config.d/*.conf matched no files
    debug1: /etc/ssh/ssh_config line 21: Applying options for *
    But I don't know what to look for in /etc/ssh/ssh_config, if that
    is indeed the problem. Comparing the file in both PCs, I see no difference. Pinging the Laptop from the desktop works fine.

    rsync in both machines is version 3.5.7 ver. 31, the latest
    available for that OS, according to Synaptic.

    As usual, any help gratefully received to solve this conundrum. I
    have followed loads of links, none of which have helped me.

    Do you have the SSH server package installed? On Ubuntu it's openssh-server.

    Theo


    To both Theo and Richard:
    That was most confusing. Both PCs had lots of files called openssh-server-something, but when I re-stalled it from scratch, it
    then worked!
    So thank you both.

    I am battling a problem where /Pictures on the laptop refuses access,
    but I can live without that until I get it sorted out.

    Thanks!


    Well, it was good while it lasted. The script that I was using
    successfully, apart from the 'Pictures' part, was working properly with 'Documents' and 'Downloads'. But they were dry-runs. Removing the
    dry-run option meant that all transfers were prohibited as 'Refused
    Access'. I think it's time to admit defeat. At least it works from the
    laptop's side.
    It used to be so simple.....

    --
    Davey.


    --- MBSE BBS v1.1.1 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)