LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 04-13-2009, 06:56 PM   #1
Bth8
LQ Newbie
 
Registered: Feb 2009
Distribution: Debian lenny
Posts: 21

Rep: Reputation: 0
SCP to windows with cygwin


I have two computers. One is running Debian Lenny, the other is running Windows XP Home Edition with Cygwin installed. I was wondering if there was any way i could scp files from Debian to windows without installing anything new (or possibly just getting a new Cygwin package) any help would be appreciated.
 
Old 04-14-2009, 11:17 AM   #2
bgoodr
Member
 
Registered: Dec 2006
Location: Oregon
Distribution: RHEL[45] {x86,x86_64}, Debian "testing" {x86,x86_64}
Posts: 219

Rep: Reputation: 36
Quote:
Originally Posted by Bth8 View Post
I have two computers. One is running Debian Lenny, the other is running Windows XP Home Edition with Cygwin installed. I was wondering if there was any way i could scp files from Debian to windows without installing anything new (or possibly just getting a new Cygwin package) any help would be appreciated.
Its been a long time since I did this, but my understanding is that scp is a part of the ssh Cygwin package (or is is called openSSH?). Look for Secure Shell or openSSH or something like that. You will of course need to set up SSH there, and there are plenty of guides on the net for SSH setup.

One thing to watch out for is to insure that Cygwin's value that it sets up in its Bash shell matches the HOME directory in the Control Panel. If the HOME directory in the Control Panel disagrees with the HOME directory that Cygwin sets up in its Bash terminal sessions, then when you populate the ~/.ssh/ directory with your new id files, you will be puzzled as to why it disallows connections otherwise. The reason is that Cygwin's ssh daemon is looking in a different directory than the Windows HOME directory. IIRC, I changed my home directory in both places to a directory at C:/<user_name>. Take a look at the value being setup by your .bashrc/.bash_profile/.profile fileset.

The other thing is the user name on the originating system (Linux) and the destination system (Windows) can be different. That may or may not matter for Cygwin, I just don't recall, but when you first start out, you may want to explicitly spell out the destination user name, and then once that is working, drop it from the command and see if it still works. I ended up making my Windows user account name be the same as my Linux account name (maybe it was due to a Samba setup that seemed to require they be equal).

bg
 
  


Reply

Tags
debian, internet, lenny, scp, ssh, windows, xp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Shell scripts in Windows Cygwin Micro420 Programming 14 10-17-2009 12:25 PM
'Having whatever Linux' working like cygwin under MS-Windows ?? Xeratul Linux - Software 2 06-04-2007 02:24 PM
Cygwin problem loading X-windows jaysin_aus General 2 08-30-2006 12:01 PM
getting cygwin for windows fakie_flip Linux - Software 2 03-09-2006 02:27 AM
How to download Cygwin NOT on windows? theYinYeti Linux - General 5 10-18-2005 10:45 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration