Linux Lite Forums
General => Security & Bug Fixes => Topic started by: Udayendu Kar on June 05, 2020, 03:52:03 AM
-
- 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]
---
- 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 ?
-
SCP works fine for me both directions. Post the SCP command you ran.
TC
-
>>> 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.
-
This is not a bug @Jerry. Either a praxis or syntax error by this specific user. They have not replied, so I cannot correct them.
TC
-
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