scp via shell integration not working on Raspberry Pi (mDNS issue?)
As the title says, I'm having issues downloading and uploading files via the shell integration's scp functionality on a fresh Raspberry Pi 5 running the latest version of Raspberry Pi OS.
I believe this is related to the issue described in #4194, but the solution described there (appending .local
to the hostname) does not work. The scp help page mentions that mDNS could be the culprit, but I've tried a few things and am not sure how to get this working.
Detailed steps to reproduce the problem:
- Set up SSH access to a remote mDNS host via public key authentication (I only have a single public key in
~/.ssh/id_rsa
and no further configuration) - Set up iTerm shell integration locally and on the remote host
- In the host's
.profile
, addexport iterm2_hostname="$(hostname -s).local"
above the line sourcing the shell integration script - SSH into the remote host
- Run
ls
to get a list of files in the home directory - Right-click on a file and choose "Download with scp"
What happened:
Even though the host is known, I get a prompt asking me to verify its DSA key fingerprint, so it does seem that some sort of connection is taking place.
However, once I click OK, I get a Connection Failed error:
Clicking on Downloads in the menu bar, hovering over the failed download, and clicking Get Info shows the following:
What should have happened:
I should be able to download files by following the above steps.
Further observations:
- Both
ssh
andscp
work as expected from the command line. - If I don't override the hostname, I don't get the DSA key fingerprint prompt and instead get kicked directly to a Connection Failed error.
- Using the Raspberry Pi's local IP address results in the same error as using the hostname +
.local
. - I don't know if these use the same mechanism, but
it2dl
andit2ul
also work as expected on the remote host.
Attachments: