LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-13-2009, 11:48 AM   #1
jqweezy
LQ Newbie
 
Registered: Jul 2008
Posts: 12

Rep: Reputation: 0
Question 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).
 
Old 02-13-2009, 12:48 PM   #2
clvic
Member
 
Registered: Feb 2008
Location: Rome, Italy
Distribution: OpenSuSE 11.x, vectorlinux, slax, Sabayon
Posts: 206
Blog Entries: 2

Rep: Reputation: 45
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
 
Old 02-13-2009, 02:12 PM   #3
jqweezy
LQ Newbie
 
Registered: Jul 2008
Posts: 12

Original Poster
Rep: Reputation: 0
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

Last edited by jqweezy; 02-13-2009 at 02:19 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find whether file transfer has completed on scp or mysqldump. ganesh_k Linux - Newbie 7 08-06-2008 09:00 AM
how to transfer data between two computers littlewenwen Linux - Newbie 19 06-07-2007 05:18 PM
data transfer between two computers jamaso Linux - General 4 09-21-2004 11:22 AM
Console hanging and scp transfer low when using ssh XStorm Linux - Networking 1 12-08-2003 09:34 PM
Data transfer from one Linux machine to another with FTP or scp faucon Linux - Newbie 6 09-10-2003 01:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration