scp - Two computers, can only transfer files one way
Hello All,
I currently have two computers (one windows one linux) connected to each other via a crossover ethernet cable. Now, each computer can see each other and I can ping both ways. Also, I can ssh into the linux box from windows (putty, cygwin) as well as ssh into my windows machine from the linux box. Here's the problem: I can send files from my linux machine to my windows machine with no problems doing this: scp this_file.txt windows_user@10.10.10.11:/cygdrive/c however, I can't seem to send from windows (cygwin) to the linux machine. Here is what I see at cygwin x-term prompt: $ scp that_file.txt jqweezy@10.10.10.10:/home/jqweezy jqweezy@10.10.10.10's password: Executing /etc/profile ... Now, it seems like everything went fine. However when I look in /home/jqweezy that_file.txt is not there. Any ideas? I look forward to your feedback. Regards, JQ p.s. Don't know if this helps, but here is some extra info. Linux machine has only one NIC. Windows has two NICs, one NIC is setup for automatic network detection the other is setup for communication with linux machine via crossover cable (see above). |
I suggest you to start scp with the -v option (-vvv is much more verbose if needed) that will print out many relevant messages. I think that from this you will understand at what stage the process stops and why, and solve the problem
|
okay, here is the actual command i am trying to execute and debug messages it prints out, bold is where i believe it is failing:
$ scp -v IT_Instalg.txt johnq@10.10.10.10:/home/johnq Executing: program /usr/bin/ssh host 10.10.10.10, user johnq, command scp -v -t /home/johnq OpenSSH_4.7p1, OpenSSL 0.9.8g 19 Oct 2007 debug1: Reading configuration data /etc/ssh_config debug1: Connecting to 10.10.10.10 [10.10.10.10] port 22. debug1: Connection established. debug1: identity file /cygdrive/c/Documents and Settings/a0271804/.ssh/identity type -1 debug1: identity file /cygdrive/c/Documents and Settings/a0271804/.ssh/id_rsa type -1 debug1: identity file /cygdrive/c/Documents and Settings/a0271804/.ssh/id_dsa type -1 debug1: Remote protocol version 1.99, remote software version OpenSSH_2.9p1 debug1: match: OpenSSH_2.9p1 pat OpenSSH_2.*,OpenSSH_3.0*,OpenSSH_3.1* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_4.7 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 '10.10.10.10' is known and matches the RSA host key. debug1: Found key in /cygdrive/c/Documents and Settings/a0271804/.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,keyboard-interactive debug1: Next authentication method: publickey debug1: Trying private key: /cygdrive/c/Documents and Settings/a0271804/.ssh/identity debug1: Trying private key: /cygdrive/c/Documents and Settings/a0271804/.ssh/id_rsa debug1: Trying private key: /cygdrive/c/Documents and Settings/a0271804/.ssh/id_dsa debug1: Next authentication method: keyboard-interactive debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Next authentication method: password johnq@10.10.10.10's password: debug1: Authentication succeeded (password). debug1: channel 0: new [client-session] debug1: Entering interactive session. debug1: Sending command: scp -v -t /home/johnq Executing /etc/profile ... debug1: client_input_channel_req: channel 0 rtype exit-status reply 0 debug1: channel 0: free: client-session, nchannels 1 debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.1 seconds debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0 debug1: Exit status 0 Any ideas, thanks for your help. -JQ |
All times are GMT -5. The time now is 01:23 PM. |