![]() |
ssh & rsync failed due to custom .bashrc - Printable Version +- Linux Lite Forums (https://www.linuxliteos.com/forums) +-- Forum: General (https://www.linuxliteos.com/forums/forumdisplay.php?fid=4) +--- Forum: Security & Bug Fixes (https://www.linuxliteos.com/forums/forumdisplay.php?fid=16) +--- Thread: ssh & rsync failed due to custom .bashrc (/showthread.php?tid=7058) |
ssh & rsync failed due to custom .bashrc - Udayendu Kar - 06-05-2020 [x] rsync failed with the following error: --- stty: standard input: Inappropriate ioctl for device protocol version mismatch -- is your shell clean? (see the rsync man page for an explanation) rsync error: protocol incompatibility (code 2) at /home/lapo/package/rsync-3.0.9-1/src/rsync-3.0.9/compat.c(174) [Receiver=3.0.9] --- [x] If doing scp the its showing "Welcome to Linux Lite 5.0 ${USER}" but unable to copy the file. So both send and receive are not working using normal user. This is happening as we have those echo lined in .bashrc. After removing those .bashrc, its working well. Can we findout an alternative to handle those entries in .bashrc ? Re: ssh & rsync failed due to custom .bashrc - trinidad - 06-05-2020 SCP works fine for me both directions. Post the SCP command you ran. TC Re: ssh & rsync failed due to custom .bashrc - Udayendu Kar - 07-16-2020 >>> Post the SCP command you ran. What to run post scp command ? I have tried on other linux distro as well. Its happening when we have some echo command in .bashrc file. If we will remove that entry, its working perfectly. Not sure how its working for you. Make sure to do scp with some remote system instead of this system. Re: ssh & rsync failed due to custom .bashrc - trinidad - 11-14-2020 This is not a bug [member=2]Jerry[/member]. Either a praxis or syntax error by this specific user. They have not replied, so I cannot correct them. TC Re: ssh & rsync failed due to custom .bashrc - jbz - 02-15-2021 Hello, For scp assure that .bashrc echo nothing add at top of bashrc test if interactive # if not running interactively, don't do anything case $- in *i*) ;; *) return;; esac inspired from ubuntu .bashrc sorry for bad english |