You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



ssh & rsync failed due to custom .bashrc

Author (Read 11885 times)

0 Members and 4 Guests are viewing this topic.

Re: ssh & rsync failed due to custom .bashrc
« Reply #5 on: February 15, 2021, 10:10:14 AM »
 

jbz

  • New to Forums
  • *
  • 2
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile

  • CPU: centrino

  • MEMORY: 4Gb

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

Re: ssh & rsync failed due to custom .bashrc
« Reply #4 on: November 14, 2020, 10:23:32 AM »
 

trinidad

  • Platinum Level Poster
  • **********
  • 1463
    Posts
  • Reputation: 212
  • Linux Lite Member
    • View Profile
    • dbts-analytics.com

  • CPU: i7 4 cores 8 threads

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD graphics

  • Kernel: 5.x
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
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 #3 on: July 16, 2020, 01:39:52 AM »
 

Udayendu Kar

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

  • 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.
 

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

trinidad

  • Platinum Level Poster
  • **********
  • 1463
    Posts
  • Reputation: 212
  • Linux Lite Member
    • View Profile
    • dbts-analytics.com

  • CPU: i7 4 cores 8 threads

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD graphics

  • 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.
 

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

Udayendu Kar

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

  • 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 ?
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section