Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

scp doesn't work!

I'm trying to scp into my computer at work but it won't let me. Its keeps giving me a new line error any help is greatly appreciated


scp -v lea529@login.astro.ufl.edu:/astro/data/dingo1/peterb/images/reg10 /reg10

Executing: program /usr/bin/ssh host login.astro.ufl.edu, user lea529, command scp -v -f /astro/data/dingo1/peterb/images/reg10

OpenSSH_5.2p1, OpenSSL 0.9.8k 25 Mar 2009

debug1: Reading configuration data /etc/ssh_config

debug1: Connecting to login.astro.ufl.edu [128.227.184.226] port 22.

debug1: Connection established.

debug1: identity file /Users/luis/.ssh/identity type -1

debug1: identity file /Users/luis/.ssh/id_rsa type -1

debug1: identity file /Users/luis/.ssh/id_dsa type -1

debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3p1 Debian-3ubuntu7

debug1: match: OpenSSH_5.3p1 Debian-3ubuntu7 pat OpenSSH*

debug1: Enabling compatibility mode for protocol 2.0

debug1: Local version string SSH-2.0-OpenSSH_5.2

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 'login.astro.ufl.edu' is known and matches the DSA host key.

debug1: Found key in /Users/luis/.ssh/known_hosts:1

debug1: ssh_dss_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,hostbased

debug1: Next authentication method: publickey

debug1: Trying private key: /Users/luis/.ssh/identity

debug1: Trying private key: /Users/luis/.ssh/id_rsa

debug1: Trying private key: /Users/luis/.ssh/id_dsa

debug1: Next authentication method: password

lea529@login.astro.ufl.edu's password:

debug1: Authentication succeeded (password).

debug1: channel 0: new [client-session]

debug1: Requesting no-more-sessions@openssh.com

debug1: Entering interactive session.

debug1: Sending command: scp -v -f /astro/data/dingo1/peterb/images/reg10

nm: Command not found.

nm: Command not found.

readelf: Command not found.

protocol error: unexpected <newline>

[ssrb-vpn2-15-217:~] luis% 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

Transferred: sent 1536, received 2208 bytes, in 0.6 seconds

Bytes per second: sent 2701.9, received 3884.0

debug1: Exit status 1


Any help?

MacBook Pro, Mac OS X (10.6)

Posted on Dec 29, 2011 10:43 PM

Reply
1 reply

Dec 30, 2011 9:34 AM in response to luis156

I think your shell initialization scrpt is echoing things to the screen, and this is causing scp to fail. I've seen this before.


If you are using bash as your shell, try adding the following to the front of your .bash_profile, or .bash_login, or .profile (whichever one you use)


[[ ${-} != *i* ]] && return


In theory this will check to see if you are interactive (*i*) and if not, then skip doing your shell initialization script and thus not output things that scp is not expecting to see.

scp doesn't work!

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.