#Issues with rsync and scp

5 messages · Page 1 of 1 (latest)

nimble whale
#

After setting up remote systems with the auto warpify shell script in .profile. I now am unable to use rsync or scp. I get the following error messages.

scp -r ~/path/to/file/ user@IP:/path/to/files
Warning: Permanently added 'IP' (ED25519) to the list of known hosts.
(user@IP Password:
scp: Received message too long 458237030
scp: Ensure the remote shell produces no output for non-interactive sessions.
rsync -azv ~/path/to/file/ user@IP:/path/to/files
Warning: Permanently added 'IP' (ED25519) to the list of known hosts.
(user@IP) Password:
protocol version mismatch -- is your shell clean?
(see the rsync man page for an explanation)
rsync error: protocol incompatibility (code 2) at /AppleInternal/Library/BuildRoots/0032d1ee-80fd-11ee-8227-6aecfccc70fe/Library/Caches/com.apple.xbs/Sources/rsync/rsync/compat.c(61) [sender=2.6.9]
finite sedgeBOT
#

Hi @nimble whale. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

Hmm, I don't know enough to give you a confident answer yet. The information extracts provided do not contain specific details about issues with rsync or scp in the context of Warp terminal.

However, the error messages you're seeing typically suggest that there's some output being generated during the shell initialization on your remote machine that's interfering with rsync and scp. These tools expect to start a clean shell on the remote machine, and any output during shell initialization can cause them to fail.

You might want to check your remote shell initialization files (like .bashrc, .bash_profile, or .zshrc) for any commands that produce output. If you find any, you could try silencing them or moving them to a part of your configuration that only runs for interactive shells.

For more detailed assistance, I would recommend reaching out to the Warp support or community, or checking the Warp documentation (https://docs.warp.dev/).

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:

#

@nimble whale kapa.ai is still learning and improving, please let us know how it did by reacting below

nimble whale
#

@merry meadow any insight?