LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Closed Thread
  Search this Thread
Old 08-24-2006, 09:44 AM   #1
gettons_slack
LQ Newbie
 
Registered: Aug 2006
Location: ITALY
Distribution: SLACKWARE
Posts: 9

Rep: Reputation: 0
Strange scp issue while copying files


Hello to everybody, suddenly my slackware 10.2 stops to send files via scp.
I succesfully login into the machine and after only a blank line intead of the usual donwloading bar with speed and time (such as wget .. )

I've tryed in lan connection and also from external.

But the sshd client has no problems, because I can login perfectly.

But the stragest thing is that:
if I use software like : winscp and Krusader ( simply gui for scp and ssh client ) I can login and transfer files.
So with graphical software I can login and transfer files.


This is a verbose scp from localhost, but I 've tried also from other machines...


Quote:
bash-3.00$ scp -v gettons@localhost:/home/gettons/prova .
Executing: program /usr/bin/ssh host localhost, user gettons, command scp -v -f /home/gettons/prova
OpenSSH_4.2p1, OpenSSL 0.9.7g 11 Apr 2005
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to localhost [127.0.0.1] port 22.
debug1: Connection established.
debug1: identity file /home/gettons/.ssh/identity type -1
debug1: identity file /home/gettons/.ssh/id_rsa type -1
debug1: identity file /home/gettons/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_4.2
debug1: match: OpenSSH_4.2 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.2
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'localhost' is known and matches the RSA host key.
debug1: Found key in /home/gettons/.ssh/known_hosts:4
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /home/gettons/.ssh/identity
debug1: Trying private key: /home/gettons/.ssh/id_rsa
debug1: Trying private key: /home/gettons/.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: password
gettons@localhost's password:
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending command: scp -v -f /home/gettons/prova
Sink:

bash-3.00$ Sending file modes: C0644 0 prova
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.0 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status 1

bash-3.00$
I0ve the deafult sshd_config so It's not usefult to show you.


Thanks in advance.



Tommy
 
Old 08-24-2006, 02:53 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Are you doing something funky in your ~/.bashrc or ~/.bash_login ?
I've seen a similar phenomenon when I was explicitly calling fortune
from my .bashrc .... not that I have an explanation as to WHY that
had that effect, I just removed it again.


Cheers,
Tink
 
Old 08-24-2006, 03:08 PM   #3
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
i don't get why you're copying from localhost to localhost? is it just for some diagnostic reason?


n/m - i just tried it and see that it works, weird.

"exit status 1" doesn't really give much info, does it?

Last edited by slackhack; 08-24-2006 at 03:14 PM.
 
Old 08-24-2006, 06:51 PM   #4
gettons_slack
LQ Newbie
 
Registered: Aug 2006
Location: ITALY
Distribution: SLACKWARE
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by slackhack
i don't get why you're copying from localhost to localhost? is it just for some diagnostic reason?


n/m - i just tried it and see that it works, weird.

"exit status 1" doesn't really give much info, does it?

It's only for diagnose...
I've trayed to do something from the wan to my pc but it's the same, the same error.
It' s very strange...


I've nothing strange in .bash_rc or .bash_profile
 
Old 08-24-2006, 07:39 PM   #5
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
have you tried it with other users? maybe even making a temporary new user to test it with to see if it's something to do with your user somehow?
 
Old 08-24-2006, 09:13 PM   #6
gettons_slack
LQ Newbie
 
Registered: Aug 2006
Location: ITALY
Distribution: SLACKWARE
Posts: 9

Original Poster
Rep: Reputation: 0
oh yes, with another user it works...
I can't know why...it is too strange to think about it...but thanks a lot for your idea...
But now, that I have all my configs and files in my usual user's ~
how can I cancel and recreate my user?
with userdel , if I remember fine, the command doesn't remove the homedir...

 
Old 08-24-2006, 10:03 PM   #7
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
thanks, but it's not my idea, i suspect Tinkster is right that it has something to do with the bash settings for the user. i would move any bash related files for that user to <file>.bak, <file>.sav, etc. and then try again.

if that doesn't work and you have to recreate the user, i would log out of any instances of that user, then move the directory to <user>.bak, <user>.sav, etc. to save it. then after deleting and recreating the user, you can start moving config files back into the new directory in a logical way to try to isolate what's causing it. maybe something's corrupted in the .ssh directory if you use authorized keys, etc.

Last edited by slackhack; 08-24-2006 at 10:13 PM.
 
Old 08-25-2006, 03:53 PM   #8
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SCP strange behaviour sbalasuriya Linux - Software 0 09-21-2004 11:50 AM
Strange Problem: Install freezes on format of HDB7 or copying files to HDB7 cowboy45 Mandriva 0 08-19-2004 12:26 AM
Strange speeds copying files to gateway machine Kristijan Linux - Networking 2 07-30-2004 07:32 AM
Issue copying data files from CD fryak Fedora 3 05-28-2004 12:49 PM
scp copying from Linux to windows richard3403 Linux - Networking 2 11-06-2003 08:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration