You are not logged in.

#1 2011-10-31 03:41:04

kernel_panic
Member
Registered: 2010-11-02
Posts: 19

[SOLVED] scp doesn't work, shows horizontal line

Hello,

I have a user "user1" on my linux machine with hostname "kernel-panic".

scp (initiated on my laptop) to user1's home directory just shows a horizontal line but does not copy.

        psd@hp-laptop:~$ scp debug.log user1@kernel-panic:
        user1@kernel-panic's password:
        __________________________________________________ _______________
        psd@hp-laptop:~$

but scp initiated by user1 on kernel-panic succeeds.
Also there is a user2 on kernel-panic, and scp to user2 from my laptop has no issues.

Could any one please help me with this ?

Thanks.

Last edited by kernel_panic (2011-10-31 17:34:56)

Offline

#2 2011-10-31 04:32:59

KingX
Member
From: CA
Registered: 2010-03-24
Posts: 324

Re: [SOLVED] scp doesn't work, shows horizontal line

Try specifying the path where you want the file to go.

psd@hp-laptop:~$ scp debug.log user1@kernel-panic:/home/user1/

Offline

#3 2011-10-31 04:43:14

kernel_panic
Member
Registered: 2010-11-02
Posts: 19

Re: [SOLVED] scp doesn't work, shows horizontal line

Tried that also, doesn't make any difference.

Actually the path where I want to copy on kernel-panic doesn't make a difference. The problem is only for this specific user (user1).
Deleted all files from /home/user1/.ssh/  and /home/psd/.ssh/ on both kernel-panic and hp-laptop respectively and tried again, but still no difference.

Last edited by kernel_panic (2011-10-31 04:44:57)

Offline

#4 2011-10-31 15:16:05

lost eden
Member
Registered: 2008-01-01
Posts: 62

Re: [SOLVED] scp doesn't work, shows horizontal line

This has happened to me in the past where the user on the machine I am scp'ing to has something in their .bashrc or .bash_profile that scp isn't expecting - does your .bashrc or .bash_profile by any chance echo a horizontal line when you open a tty/terminal? Try just commenting out everything in either/both of these files & see if it works then.

Offline

#5 2011-10-31 17:06:58

kernel_panic
Member
Registered: 2010-11-02
Posts: 19

Re: [SOLVED] scp doesn't work, shows horizontal line

/home/user1/.bashrc (on kernel-panic):

alias ls='ls --color=always'
alias l='ls -l'
alias c='clear'
alias ..='cd ..'
alias m='make'
alias mc='make clean'
alias dmesgt='dmesg | tail -n 50'
alias tmxl='tmux list-sessions'

#[ -n "$TMUX" ] && export TERM=screen-256color

fortune -s | cowsay -n -f tux

(Currently TERM=xterm)

and .bash_profile is:

if [ -f ~/.bashrc ]; then
   source ~/.bashrc
fi

Can't see any issue here.

Offline

#6 2011-10-31 17:15:39

lost eden
Member
Registered: 2008-01-01
Posts: 62

Re: [SOLVED] scp doesn't work, shows horizontal line

Comment out the fortune/cowsay line. The horizontal line that you are getting when you try to scp looks exactly like the top of the cowsay speech bubble.

Offline

#7 2011-10-31 17:18:42

kernel_panic
Member
Registered: 2010-11-02
Posts: 19

Re: [SOLVED] scp doesn't work, shows horizontal line

Wow.. it worked.
Thanks a lot.

Offline

#8 2011-10-31 17:28:59

lost eden
Member
Registered: 2008-01-01
Posts: 62

Re: [SOLVED] scp doesn't work, shows horizontal line

Now all you need to do is edit the topic to [solved] smile

Offline

#9 2011-10-31 17:33:02

kernel_panic
Member
Registered: 2010-11-02
Posts: 19

Re: [SOLVED] scp doesn't work, shows horizontal line

Oops.. how to do that ?

Offline

#10 2011-10-31 17:34:14

lost eden
Member
Registered: 2008-01-01
Posts: 62

Re: [SOLVED] scp doesn't work, shows horizontal line

It's been a while since I did it, but IIRC you click on 'edit' on your first post & it lets you edit the topic as well.

Offline

#11 2011-10-31 17:35:23

kernel_panic
Member
Registered: 2010-11-02
Posts: 19

Re: [SOLVED] scp doesn't work, shows horizontal line

Yup. Its done.

Thanks a lot again. smile

Offline

Board footer

Powered by FluxBB