Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

no match and scp/sftp not working. Is the no match causing my problem? how to resolve

995 views
Skip to first unread message

aa

unread,
Jan 5, 2002, 1:40:39 PM1/5/02
to
Hello,
Per subject, I cant scp nor sftp. I have a SuSe 7.2 2.4.4 kernel
with OpenSSH_2.9p1, SSH protocols 1.5/2.0, OpenSSL, and Freebsd
sshd version OpenSSH_2.3.0 gr...@FreeBSD.org 20010321. Please help
me troubleshoot what causes my broken pipe. Thanks in advance.

I have enabled debug mode on the by
# /usr/sbin/sshd -d
debug1: sshd version OpenSSH_2.3.0 gr...@FreeBSD.org 20010321
debug1: read DSA private key done
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.
Generating 768 bit RSA key.
RSA key generation complete.
debug1: Server will not fork when running in debugging mode.
Connection from gnj.snakeoil.net port 32801
Connection from 192.168.100.131 port 32801
debug1: Client protocol version 1.5; client software version
OpenSSH_2.9p1
debug1: no match: OpenSSH_2.9p1 <---### is this causing the problem? ###
debug1: Local version string SSH-1.99-OpenSSH_2.3.0 gr...@FreeBSD.org
20010321
debug1: Sent 768 bit public key and 1024 bit host key.
debug1: Encryption type: 3des
debug1: Received session key; encryption turned on.
debug1: Installing crc compensation attack detector.
debug1: Starting up PAM with username "mathew"
debug1: Attempting authentication for mathew.
debug1: PAM Password authentication accepted for user "mathew"
Accepted password for mathew from 192.168.100.131 port 32801
debug1: session_new: init
debug1: session_new: session 0
debug1: Exec command 'scp -v -t /home/mathew/classes12.jar'
debug1: PAM establishing creds
debug1: Entering interactive session.
debug1: fd 10 setting O_NONBLOCK
debug1: fd 10 IS O_NONBLOCK
debug1: fd 12 setting O_NONBLOCK
debug1: server_init_dispatch_13
debug1: server_init_dispatch_15
debug1: tvp!=NULL kid 0 mili 10
debug1: EOF received for stdin.
debug1: tvp!=NULL kid 0 mili 10
debug1: Received SIGCHLD.
debug1: tvp!=NULL kid 1 mili 10
debug1: tvp!=NULL kid 1 mili 100
debug1: End of interactive session; stdin 0, stdout
(read 25, sent 25), stderr 332 bytes.
debug1: Command exited with status 0.
Connection closed by 192.168.100.131
debug1: Calling cleanup 0x8058330(0x0)
debug1: Calling cleanup 0x805e72c(0x0)

On the client side I enabled debug also:
==[oracle] /u01/OJSP/j2ee/home/lib $ scp -v ./class12.jar
mathew@permi:/home/mathew/classes12.jar
Executing: program /usr/bin/ssh host permi, user mathew,
command scp -v -t /home/mathew/classes12.jar
mathew@permi's password:
Environment:
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/
usr/X11R6/bin:/home/mathew/bin
MAIL=/var/mail/mathew
BLOCKSIZE=K
FTP_PASSIVE_MODE=YES
USER=mathew
LOGNAME=mathew
HOME=/home/mathew
SHELL=/usr/local/bin/bash
SSH_CLIENT=192.168.100.131 32801 22
gcc: No input files specified
I came in from .bashrc
==[oracle] /u01/OJSP/j2ee/home/lib $ Write failed flushing stdout buffer.
write stdout: Broken pipe

Richard E. Silverman

unread,
Jan 5, 2002, 4:37:48 PM1/5/02
to

> debug1: no match: OpenSSH_2.9p1 <---### is this causing the problem? ###

No.

> gcc: No input files specified
> I came in from .bashrc

What is this? It looks like the command "scp" is running "gcc" instead,
or else your .bashrc file is doing it and/or producing output, which it
must not. See:

http://www.snailbook.com/faq/sftp-corruption.auto.html

Slightly different context, but same problem.

--
Richard Silverman
sl...@shore.net

Markus Friedl

unread,
Jan 6, 2002, 1:22:15 PM1/6/02
to

>debug1: no match: OpenSSH_2.9p1 <---### is this causing the problem? ###

no. this is just a debug message.

>debug1: EOF received for stdin.

perhaps scp is not installed on the server, or not
in the default path.

-m

aa

unread,
Jan 6, 2002, 6:03:46 PM1/6/02
to
sl...@shore.net (Richard E. Silverman) wrote in message news:<m1lsn9k...@syrinx.oankali.net>...

Thank you! Thank you! That cured it, I took out the echo I came in from
.bashrc, this was my debugging printstatment :), and didn't know it
was causing such a big issue for me.

BTW, for the responder who had suggested I need a an scp on the serverside?
I do not know if I have one running on freebsd or not, as I thought
it is part of the sshd which creates a subprocess and subprotocol for file
transfer. Also I can not find a scp client nor scpd (server?) on my freebsd.
For now, I am able to transfer the files between the linux and freebsd.
I wish I know a tool I can verify the transfer is secure (encrypted), likewise
even if I was not using ssh, I wish I have a tool to view/capture and see the
bits going trough in-between. I have heard of protocol analyzers, is there
a cheap one that comes with linux or freebsd? Thanks.

Richard E. Silverman

unread,
Jan 7, 2002, 3:05:32 AM1/7/02
to
>>>>> "aa" == aa <aaax...@yahoo.com> writes:

aa> BTW, for the responder who had suggested I need a an scp on the
aa> serverside? I do not know if I have one running on freebsd or
aa> not, as I thought it is part of the sshd which creates a
aa> subprocess and subprotocol for file transfer.

Yes, and it runs scp in that process to talk to the client-side scp.

aa> Also I can not find a scp client nor scpd (server?) on my freebsd.

It's the same program, invoked with the -t or -f options to make receive
or send files as needed. But it must be there, or your file transfers
would not be working.

aa> I wish I know a tool I can verify the transfer is secure
aa> (encrypted), likewise even if I was not using ssh, I wish I have a
aa> tool to view/capture and see the bits going trough in-between.

"tcpdump" -- if it isn't in your FreeBSD installation, you can get the
source and compile it yourself. You can certainly see that the SSH
traffic does not contain plain text as opposed to Telnet, for example, but
it cannot let you verify that it is "secure."

--
Richard Silverman
sl...@shore.net

0 new messages