You are not logged in.
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
Try specifying the path where you want the file to go.
psd@hp-laptop:~$ scp debug.log user1@kernel-panic:/home/user1/Offline
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
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
/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
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
Wow.. it worked.
Thanks a lot.
Offline
Now all you need to do is edit the topic to [solved] ![]()
Offline
Oops.. how to do that ?
Offline
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
Yup. Its done.
Thanks a lot again. ![]()
Offline