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



SCP wont work

Author (Read 7723 times)

0 Members and 1 Guest are viewing this topic.

Re: SCP wont work
« Reply #3 on: May 25, 2021, 08:02:54 PM »
 

noweare

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

  • CPU: Intel Celeron CPU @ 2.4GHz 1 processor, 2 cores

  • MEMORY: 4Gb

  • VIDEO CARD: 1440 x 900

  • Kernel: 4.x
Thank you, although your post is nearly 4 years old your work around worked for me.  :)
 

Re: SCP wont work
« Reply #2 on: July 02, 2018, 03:06:37 PM »
 

lofven

  • New to Forums
  • *
  • 2
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile
..seems like I found a workaround. Commenting out the msg at the end of the .bashrc (home/USER/.bashrc) solved it. That also get rid of the banner in ssh login but I can live with that. (Or maybe do a custom one in sshd.conf?). If anyone have a different solution, please reply.

/home/USER/.bashrc now looks like this

Code: [Select]
# enable bash completion in interactive shells
if ! shopt -oq posix; then
  if [ -f /usr/share/bash-completion/bash_completion ]; then
    . /usr/share/bash-completion/bash_completion
  elif [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
  fi
fi

alias usage='du -sk * | sort -n | perl -ne '\''($s,$f)=split(m{\t});for (qw(K M G)) {if($s<1024) {printf("%.1f",$s);print "$_\t$f"; last};$s=$s/1024}'\'
alias ls="ls --color"

# Powerline
if [ -f /usr/share/powerline/bindings/bash/powerline.sh ]; then
    source /usr/share/powerline/bindings/bash/powerline.sh
fi

# Linux Lite Custom Terminal
LLVER=$(awk '{print}' /etc/llver)

#echo -e "Welcome to $LLVER ${USER}"
#echo " "
#date "+%A %d %B %Y, %T"
#free -m | awk 'NR==2{printf "Memory Usage: %s/%sMB (%.2f%%)\n", $3,$2,$3*100/$2 }'
#df -h | awk '$NF=="/"{printf "Disk Usage: %d/%dGB (%s)\n", $3,$2,$5}'
#echo "Support - https://www.linuxliteos.com/forums/ (Right click, Open Link)"
#echo " "

 

SCP wont work
« Reply #1 on: July 02, 2018, 01:04:46 PM »
 

lofven

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

Running Linuxlite since two days. Works fine except SCP. SSH works, but when transmitting files to the LinuxLite host with SCP I only get a welcome message.

Syntax: scp file user@host:~
Output: Welcome to Linux Lite 4.0 ola
..nothing ends up on the other side.

I googled and found a lot pointing at the welcome banner interfering with scp, but no luck with getting rid of the banner (or the problem). SCP is quite common and trivial so I'm surprised that it's not working on a basic setup.

All help appreciated!
« Last Edit: July 02, 2018, 03:07:58 PM by lofven »
 

 

-->
X Close Ad

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