LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


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

Rep: Reputation: 0
Strange scp issue while copying files


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-25-2006, 02:09 AM   #2
meetscott
Samhain Slackbuild Maintainer
 
Registered: Sep 2004
Location: Phoenix, AZ, USA
Distribution: Slackware
Posts: 411

Rep: Reputation: 43
I'm suspecting that those graphical clients are using are using protocol version 1 and so there are no issues. I can't think of anything different in the scenerios that you have described. Maybe try scp -1 to force protocol version 1 to see if that works? Also, if your really desperate you can use an ssh pipe since that seems to work for you. Something like:

tar -cf - file_to_transfer.txt | ssh destination_host "cd /home/whoeveryouare/some_subdirectory; tar -xf -"
 
Old 08-26-2006, 06:33 AM   #3
gettons_slack
LQ Newbie
 
Registered: Aug 2006
Location: ITALY
Distribution: SLACKWARE
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by meetscott
I'm suspecting that those graphical clients are using are using protocol version 1 and so there are no issues. I can't think of anything different in the scenerios that you have described. Maybe try scp -1 to force protocol version 1 to see if that works? Also, if your really desperate you can use an ssh pipe since that seems to work for you. Something like:

tar -cf - file_to_transfer.txt | ssh destination_host "cd /home/whoeveryouare/some_subdirectory; tar -xf -"

Exit status also with -1
but with other users it doesn't happen...
Maybe something in my user's configs bahs files...
 
  


Reply


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
Strange scp issue while copying files gettons_slack Slackware 7 08-25-2006 02:53 PM
Strange Problem: Install freezes on format of HDB7 or copying files to HDB7 cowboy45 Mandriva 0 08-18-2004 11:26 PM
Strange speeds copying files to gateway machine Kristijan Linux - Networking 2 07-30-2004 06:32 AM
Issue copying data files from CD fryak Fedora 3 05-28-2004 11:49 AM
scp copying from Linux to windows richard3403 Linux - Networking 2 11-06-2003 07:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:30 PM.

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