Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-24-2006, 09:44 AM
|
#1
|
LQ Newbie
Registered: Aug 2006
Location: ITALY
Distribution: SLACKWARE
Posts: 9
Rep:
|
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
|
|
|
08-24-2006, 02:53 PM
|
#2
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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
|
|
|
08-24-2006, 03:08 PM
|
#3
|
Senior Member
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016
Rep:
|
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.
|
|
|
08-24-2006, 06:51 PM
|
#4
|
LQ Newbie
Registered: Aug 2006
Location: ITALY
Distribution: SLACKWARE
Posts: 9
Original Poster
Rep:
|
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
|
|
|
08-24-2006, 07:39 PM
|
#5
|
Senior Member
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016
Rep:
|
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?
|
|
|
08-24-2006, 09:13 PM
|
#6
|
LQ Newbie
Registered: Aug 2006
Location: ITALY
Distribution: SLACKWARE
Posts: 9
Original Poster
Rep:
|
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...

|
|
|
08-24-2006, 10:03 PM
|
#7
|
Senior Member
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016
Rep:
|
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.
|
|
|
08-25-2006, 03:53 PM
|
#8
|
Moderator
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
|
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.
|
|
|
All times are GMT -5. The time now is 09:39 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|