ssh from there to here?

Ted Roche tedroche at tedroche.com
Fri Jul 30 14:25:01 EDT 2004


I've been using ssh to transfer files to my web server from my home 
office without a problem, but I'm trying to receive rather than send, 
and either I don't understand how to form the command, or I've got 
something configured wrong.

To test the configuration, I've ssh'd into the remote machine, and 
initiated an ssh session from the remote box back into the local 
machine, to get the authorized host key in place. I've scp'd a file 
that way from the remote box to the local box successfully. But, when I 
try to pull a file from the remote server, I'm getting a failure. Is 
this the right way to try to transfer the file, or should I be doing 
something else? I'm guessing that the remote machine can't get the 
password to the local machine because it's executing with the -n flag. 
Do I need to use ssh-agent or keychain to get this to work?

Below is the verbose output of the attempt. Any guidance would be 
appreciated.

Ted-Roches-Computer:~ tedroche$ scp -v 
troche at tedroche.com:/home/troche/Ted.png 
tedroche at 66.31.253.217:/users/tedroche/
Executing: /usr/bin/ssh -v -x -o'ClearAllForwardings yes' -n -l troche 
tedroche.com scp -v /home/troche/Ted.png 
'tedroche at 66.31.253.217:/users/tedroche/'
OpenSSH_3.6.1p1+CAN-2003-0693, SSH protocols 1.5/2.0, OpenSSL 0x0090702f
debug1: Reading configuration data /etc/ssh_config
debug1: Rhosts Authentication disabled, originating port will not be 
trusted.
debug1: Connecting to tedroche.com [64.35.194.44] port 22.
debug1: Connection established.
debug1: identity file /Users/tedroche/.ssh/identity type -1
debug1: identity file /Users/tedroche/.ssh/id_rsa type -1
debug1: identity file /Users/tedroche/.ssh/id_dsa type 2
debug1: Remote protocol version 1.99, remote software version 
OpenSSH_3.6.1p2
debug1: match: OpenSSH_3.6.1p2 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.6.1p1+CAN-2003-0693
debug1: Miscellaneous failure
No credentials cache found

debug1: Miscellaneous failure
No credentials cache found

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 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 'tedroche.com' is known and matches the RSA host key.
debug1: Found key in /Users/tedroche/.ssh/known_hosts:1
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: /Users/tedroche/.ssh/identity
debug1: Trying private key: /Users/tedroche/.ssh/id_rsa
debug1: Offering public key: /Users/tedroche/.ssh/id_dsa
debug1: Authentications that can continue: 
publickey,password,keyboard-interactive
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: 
publickey,password,keyboard-interactive
debug1: Next authentication method: password
troche at tedroche.com's password:
debug1: Authentication succeeded (password).
debug1: fd 4 setting O_NONBLOCK
debug1: fcntl(4, F_SETFL, O_NONBLOCK): Operation not supported by device
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending command: scp -v /home/troche/Ted.png 
tedroche at 66.31.253.217:/users/tedroche/
debug1: channel 0: request exec
debug1: channel 0: open confirm rwindow 0 rmax 32768
debug1: channel 0: read<=0 rfd 4 len 0
debug1: channel 0: read failed
debug1: channel 0: close_read
debug1: channel 0: input open -> drain
debug1: channel 0: ibuf empty
debug1: channel 0: send eof
debug1: channel 0: input drain -> closed
Executing: program /usr/bin/ssh host 66.31.253.217, user tedroche, 
command scp -v -t /users/tedroche/
OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL 0x0090701f
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Rhosts Authentication disabled, originating port will not be 
trusted.
debug1: Connecting to 66.31.253.217 [66.31.253.217] port 22.
debug1: Connection established.
debug1: identity file /home/troche/.ssh/identity type -1
debug1: identity file /home/troche/.ssh/id_rsa type -1
debug1: identity file /home/troche/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version 
OpenSSH_3.6.1p1+CAN-2003-0693
debug1: match: OpenSSH_3.6.1p1+CAN-2003-0693 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.6.1p2
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 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 '66.31.253.217' is known and matches the RSA host key.
debug1: Found key in /home/troche/.ssh/known_hosts:1
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: 
gssapi,publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /home/troche/.ssh/identity
debug1: Trying private key: /home/troche/.ssh/id_rsa
debug1: Trying private key: /home/troche/.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: 
gssapi,publickey,password,keyboard-interactive
debug1: Next authentication method: password
debug1: Authentications that can continue: 
gssapi,publickey,password,keyboard-interactive
Permission denied, please try again.
debug1: Authentications that can continue: 
gssapi,publickey,password,keyboard-interactive
Permission denied, please try again.
debug1: channel 0: rcvd eof
debug1: channel 0: output open -> drain
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: rcvd close
debug1: Authentications that can continue: 
gssapi,publickey,password,keyboard-interactive
debug1: No more authentication methods to try.
Permission denied (gssapi,publickey,password,keyboard-interactive).
debug1: Calling cleanup 0x8062d00(0x0)
lost connection
debug1: channel 0: obuf empty
debug1: channel 0: close_write
debug1: channel 0: output drain -> closed
debug1: channel 0: almost dead
debug1: channel 0: gc: notify user
debug1: channel 0: gc: user detached
debug1: channel 0: send close
debug1: channel 0: is dead
debug1: channel 0: garbage collecting
debug1: channel_free: channel 0: client-session, nchannels 1
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 3.3 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status 1
Ted-Roches-Computer:~ tedroche$


Ted Roche
Ted Roche & Associates, LLC
http://www.tedroche.com




More information about the gnhlug-discuss mailing list