scp and rsync

Feb 25, 2024 Last reply: 2 years ago 4 Replies

Sorry, I am new to using Thunderbird as a newsreader and can't get it to send followups. The following is the ssh info on my older Mac and new rpi5. They talk to each other with scp and rsync. Any ideas how to proceed?



Mac mini OSX Version 10.8.5



mini:Posts snelson$ uname -a Darwin mini.home 12.6.0 Darwin Kernel Version 12.6.0: Wed Mar 18



16:23:48 PDT 2015; root:xnu-2050.48.19~1/RELEASE_X86_64 x86_64 mini:Posts snelson$ ssh -V OpenSSH_5.9p1, OpenSSL 0.9.8zg 14 July 2015 mini:Posts snelson$ ls -al /etc/ssh*

-rw-r--r-- 1 root wheel 1732 Apr 11 2013 /etc/ssh_config



-rw-r--r-- 1 root wheel 1319 Nov 30 2007 /etc/ssh_config.applesaved



-rw-r--r-- 1 root wheel 1465 Sep 24 2007 /etc/ssh_config.system_default



-rw-r--r-- 1 root wheel 1622 Oct 21 2016 /etc/ssh_config~orig



-rw------- 1 root wheel 668 Feb 15 2007 /etc/ssh_host_dsa_key



-rw-r--r-- 1 root wheel 590 Feb 15 2007 /etc/ssh_host_dsa_key.pub



-rw------- 1 root wheel 515 Feb 15 2007 /etc/ssh_host_key



-rw-r--r-- 1 root wheel 319 Feb 15 2007 /etc/ssh_host_key.pub



-rw------- 1 root wheel 887 Feb 15 2007 /etc/ssh_host_rsa_key



-rw-r--r-- 1 root wheel 210 Feb 15 2007 /etc/ssh_host_rsa_key.pub



-rw-r--r-- 1 root wheel 3797 Apr 11 2013 /etc/sshd_config



-rw-r--r-- 1 root wheel 2772 Nov 30 2007 /etc/sshd_config.applesaved



-rw-r--r-- 1 root wheel 3362 Sep 24 2007 /etc/sshd_config.system_default



-rw-r--r-- 1 root wheel 3698 Oct 21 2016 /etc/sshd_config~orig mini:Posts snelson$


Rpi5 Debian Bookworm pi@rpi5:~ $ uname -a Linux rpi5 6.1.0-rpi8-rpi-2712 #1 SMP PREEMPT Debian 1:6.1.73-1+rpt1 (2024-01-25) aarch64 GNU/Linux pi@rpi5:~ $ ssh -V OpenSSH_9.2p1 Debian-2+deb12u2, OpenSSL 3.0.11 19 Sep 2023 pi@rpi5:~ $ ls -al /etc/ssh total 624 drwxr-xr-x 4 root root 4096 Jan 16 17:09 . drwxr-xr-x 139 root root 12288 Feb 25 09:41 ..



-rw-r--r-- 1 root root 573928 Sep 23 17:11 moduli



-rw-r--r-- 1 root root 1650 Sep 23 17:11 ssh_config drwxr-xr-x 2 root root 4096 Sep 23 17:11 ssh_config.d



-rw-r--r-- 1 root root 3223 Sep 23 17:11 sshd_config drwxr-xr-x 2 root root 4096 Jan 16 17:11 sshd_config.d



-rw------- 1 root root 505 Dec 31 1969 ssh_host_ecdsa_key



-rw-r--r-- 1 root root 173 Dec 31 1969 ssh_host_ecdsa_key.pub



-rw------- 1 root root 399 Dec 31 1969 ssh_host_ed25519_key



-rw-r--r-- 1 root root 93 Dec 31 1969 ssh_host_ed25519_key.pub



-rw------- 1 root root 2590 Dec 31 1969 ssh_host_rsa_key



-rw-r--r-- 1 root root 565 Dec 31 1969 ssh_host_rsa_key.pub



-rw-r--r-- 1 root root 342 Feb 28 2020 ssh_import_id pi@rpi5:~ $ pi@rpi5:~/Downloads $



They CAN'T talk to each other with scp and rsync Bad typo!

I think I found a solution. As suggested I aaded the following line to both ssh_config and sshd_config files just after the first Include line

HostKeyAlgorithms +ssh-rsa,ssh-dss

rsync and scp seem to work both ways now. (Reboot after editing config files - /etc/ssh/ssh_config and /etc/ssh/sshd_config on the rpi5 bookworm . I'll do it to my rpi4b machine now too. Thanks for help. --Steve

I recommend prefix those lines with a filter for the problematic machine, so you can't unwittingly be compromised by week security on other sites.

e.g.

Host <hostname>

HostKeyAlgorithms +ssh-rsa,ssh-dss

---druck

I recommend upgrading the ancient macOS install to something from this decade l-)

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required