[ncolug] Re: odd ssh and scp problem

  • From: Mike Goracke <mgoracke@xxxxxxxxxx>
  • To: ncolug@xxxxxxxxxxxxx
  • Date: Sun, 31 Oct 2010 22:43:18 -0400

I had added the program "fortune" to my .bachrc file. Once I removed it works fine. Thanks, Jim!


On 10/31/2010 05:04 AM, Jim Willeke wrote:
My guess is that something in your shell is causing your issue.

Check out:
is your shell clean <http://www.samba.org/rsync/FAQ.html>
....
A good way to test if your remote-shell connection is clean is to try something like this (use ssh or rsh, as appropriate):

ssh remotesystem /bin/true > test.dat
That should create a file called test.dat with nothing in it. If test.dat is not of zero length then your shell is not clean. Look at the contents of test.dat to see what was sent. Look at all the startup files on remotesystem to try and find the problem.
....


-jim
Jim Willeke


On Sat, Oct 30, 2010 at 8:14 PM, Mike Goracke <mgoracke@xxxxxxxxxx <mailto:mgoracke@xxxxxxxxxx>> wrote:

    Not sure what's happening here...


    Sat Oct 30 06:15 AM mike@ubuntulaptop:~: scp -r -v Documents
    kip@xxxxxxxxxxxxx:/home/kip/ <mailto:kip@xxxxxxxxxxxxx:/home/kip/>
    Executing: program /usr/bin/ssh host 192.168.1.125, user kip,
    command scp -v -r -t /home/kip/
    OpenSSH_5.3p1 Debian-3ubuntu4, OpenSSL 0.9.8k 25 Mar 2009
    debug1: Reading configuration data /etc/ssh/ssh_config
    debug1: Applying options for *
    debug1: Connecting to 192.168.1.125 [192.168.1.125] port 22.
    debug1: Connection established.
    debug1: identity file /home/mike/.ssh/identity type -1
    debug1: identity file /home/mike/.ssh/id_rsa type -1
    debug1: identity file /home/mike/.ssh/id_dsa type -1
    debug1: Remote protocol version 2.0, remote software version
    OpenSSH_5.3p1 Debian-3ubuntu4
    debug1: match: OpenSSH_5.3p1 Debian-3ubuntu4 pat OpenSSH*
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_5.3p1 Debian-3ubuntu4
    debug1: SSH2_MSG_KEXINIT sent
    debug1: SSH2_MSG_KEXINIT received
    debug1: kex: server->client aes128-ctr hmac-md5 noneSat Oct 30
    06:15 AM mike@ubuntulaptop:~: scp -r -v Documents
    kip@xxxxxxxxxxxxx:/home/kip/ <mailto:kip@xxxxxxxxxxxxx:/home/kip/>
    Executing: program /usr/bin/ssh host 192.168.1.125, user kip,
    command scp -v -r -t /home/kip/
    OpenSSH_5.3p1 Debian-3ubuntu4, OpenSSL 0.9.8k 25 Mar 2009
    debug1: Reading configuration data /etc/ssh/ssh_config
    debug1: Applying options for *
    debug1: Connecting to 192.168.1.125 [192.168.1.125] port 22.
    debug1: Connection established.
    debug1: identity file /home/mike/.ssh/identity type -1
    debug1: identity file /home/mike/.ssh/id_rsa type -1
    debug1: identity file /home/mike/.ssh/id_dsa type -1
    debug1: Remote protocol version 2.0, remote software version
    OpenSSH_5.3p1 Debian-3ubuntu4
    debug1: match: OpenSSH_5.3p1 Debian-3ubuntu4 pat OpenSSH*
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_5.3p1 Debian-3ubuntu4
    debug1: SSH2_MSG_KEXINIT sent
    debug1: SSH2_MSG_KEXINIT received
    debug1: kex: server->client aes128-ctr hmac-md5 none
    debug1: kex: client->server aes128-ctr 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 '192.168.1.125' is known and matches the RSA host key.
    debug1: Found key in /home/mike/.ssh/known_hosts:5
    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
    debug1: Next authentication method: publickey
    debug1: Trying private key: /home/mike/.ssh/identity
    debug1: Trying private key: /home/mike/.ssh/id_rsa
    debug1: Trying private key: /home/mike/.ssh/id_dsa
    debug1: Next authentication method: password
    kip@xxxxxxxxxxxxx <mailto:kip@xxxxxxxxxxxxx>'s password:
    debug1: Authentication succeeded (password).
    debug1: channel 0: new [client-session]
    debug1: Requesting no-more-sessions@xxxxxxxxxxx
    <mailto:no-more-sessions@xxxxxxxxxxx>
    debug1: Entering interactive session.
    debug1: Sending environment.
    debug1: Sending env LANG = en_US.utf8
    debug1: Sending command: scp -v -r -t /home/kip/
     _     ___ _   _ _   ___  __  ____   ___   ____ _  __ ______
    Sat Oct 30 08:10 PM mike@ubuntulaptop:~: debug1:
    client_input_channel_req: channel 0 rtype exit-signal reply 0
    debug1: channel 0: free: client-session, nchannels 1
    debug1: fd 0 clearing O_NONBLOCK
    debug1: fd 1 clearing O_NONBLOCK
    Transferred: sent 1520, received 2408 bytes, in 0.9 seconds
    Bytes per second: sent 1735.8, received 2750.0
    debug1: Exit status -1


    debug1: kex: client->server aes128-ctr 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 '192.168.1.125' is known and matches the RSA host key.
    debug1: Found key in /home/mike/.ssh/known_hosts:5
    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
    debug1: Next authentication method: publickey
    debug1: Trying private key: /home/mike/.ssh/identity
    debug1: Trying private key: /home/mike/.ssh/id_rsa
    debug1: Trying private key: /home/mike/.ssh/id_dsa
    debug1: Next authentication method: password
    kip@xxxxxxxxxxxxx <mailto:kip@xxxxxxxxxxxxx>'s password:
    debug1: Authentication succeeded (password).
    debug1: channel 0: new [client-session]
    debug1: Requesting no-more-sessions@xxxxxxxxxxx
    <mailto:no-more-sessions@xxxxxxxxxxx>
    debug1: Entering interactive session.
    debug1: Sending environment.
    debug1: Sending env LANG = en_US.utf8
    debug1: Sending command: scp -v -r -t /home/kip/
     _     ___ _   _ _   ___  __  ____   ___   ____ _  __ ______
    Sat Oct 30 08:10 PM mike@ubuntulaptop:~: debug1:
    client_input_channel_req: channel 0 rtype exit-signal reply 0
    debug1: channel 0: free: client-session, nchannels 1
    debug1: fd 0 clearing O_NONBLOCK
    debug1: fd 1 clearing O_NONBLOCK
    Transferred: sent 1520, received 2408 bytes, in 0.9 seconds
    Bytes per second: sent 1735.8, received 2750.0
    debug1: Exit status -1







    On 10/30/2010 04:51 PM, Jim Willeke wrote:
    try with the -v option and post the error, output, command line.


    -jim
    Jim Willeke


    On Sat, Oct 30, 2010 at 2:26 PM, Mike Goracke
    <mgoracke@xxxxxxxxxx <mailto:mgoracke@xxxxxxxxxx>> wrote:


        I'm suddenly having a strange problem with using scp. I can
        log on to my machines via ssh but when I try to copy folders
        from one machine to another using "scp -r", I just get some
        strange output lines.  I'm using " scp -r Pictures
        syd@xxxxxxxxxxxxx:/home/syd
        <mailto:syd@xxxxxxxxxxxxx:/home/syd> " and it doesn't seem to
        work anymore. I have ssh and openssh-server installed on all
        machines. I have also gone into .ssh and removed the
        known_hosts file thinking maybe it was corrupt or something.
        Any help would be greatly appreciated.

        MikeG

        To unsubscribe send to ncolug-request@xxxxxxxxxxxxx
        <mailto:ncolug-request@xxxxxxxxxxxxx> with 'unsubscribe' in
        the Subject field.





Other related posts: