You are Here:
Linux Lite 5.2 RC1 is now available for download and testing



[ BUG ] ssh & rsync failed due to custom .bashrc

Author (Read 1173 times)

0 Members and 1 Guest are viewing this topic.

ssh & rsync failed due to custom .bashrc
« on: June 05, 2020, 03:52:03 AM »
 

Udayendu Kar

  • New to Forums
  • *
  • 4
    Posts
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 5.0 64bit

  • CPU: 4

  • MEMORY: 12Gb

  • VIDEO CARD: Yes
  • 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 ?
 


Re: ssh & rsync failed due to custom .bashrc
« Reply #1 on: June 05, 2020, 08:03:27 AM »
 

trinidad

  • Platinum Level Poster
  • **********
  • 1151
    Posts
  • Country: us
  • Reputation: 187
  • Linux Lite Member
    • dbts-analytics.com

  • Linux Lite: 5.0 64bit

  • CPU: AMD A8 5500 4 cores

  • MEMORY: 8Gb

  • VIDEO CARD: AMD/ATI Radeon HD 7560D

  • Kernel: 5.x
SCP works fine for me both directions. Post the SCP command you ran.

TC
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.
 

Re: ssh & rsync failed due to custom .bashrc
« Reply #2 on: July 16, 2020, 01:39:52 AM »
 

Udayendu Kar

  • New to Forums
  • *
  • 4
    Posts
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 5.0 64bit

  • CPU: 4

  • MEMORY: 12Gb

  • VIDEO CARD: Yes
>>> 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.
 


Tags: ssh rsync .bashrc 
 


Linux Lite 5.2 RC1 is now available for download and testing