LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-02-2008, 09:17 AM   #1
kapilbajpai88
Member
 
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Rep: Reputation: 41
Question How SCP works?


Hi All,
Could anybody please let me know how to SCP command between Windows-Windows, and Windows-Linux5.
I am comfortable with SCP between linux5 to windows. But vice-versa is not so convenient.
Also, can we use SCP between two comps within same server , but in different offices ?

Thank you in advance...
Kapil.
 
Old 12-02-2008, 09:24 AM   #2
IsharaComix
Member
 
Registered: Sep 2008
Location: Raleigh
Distribution: Ubuntu 8.10
Posts: 88
Blog Entries: 1

Rep: Reputation: 15
I use a program called "WinSCP" to handle it for me when I'm forced to work in Windows.

http://winscp.net/eng/index.php

It's GPL and it works pretty nicely. I hope it helps you get the job done.
 
Old 12-02-2008, 09:29 AM   #3
kapilbajpai88
Member
 
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Original Poster
Rep: Reputation: 41
Quote:
Originally Posted by IsharaComix View Post
I use a program called "WinSCP" to handle it for me when I'm forced to work in Windows.

http://winscp.net/eng/index.php

It's GPL and it works pretty nicely. I hope it helps you get the job done.
Hi There,
Thanks for the concern...
but i am looking for inter-compatibility between windows and linux. i tried winscp, but it was not working across different platforms...
could you please tell me how you used WINSCP at your end?

Thanks again,
Kapil.
 
Old 12-02-2008, 09:32 AM   #4
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,492

Rep: Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956
It works for me, to copy files between windows and linux and vice versa. Just insert the IP of the machine you want to connect to in the Host name field, fill up the User Name and Password fields and the trick is done. Or am I missing something?
 
Old 12-02-2008, 09:59 AM   #5
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
Windows to Windows..hmm

SCP is basically a remote copy (rcp) through a SSH tunnel.. if you wanted to do windows to windows then you would need an ssh server running on both windows machines.

http://en.wikipedia.org/wiki/Secure_copy


WinSCP is just a client that can connect to and SCP to from a machine that is running ssh. I do like winscp and use it all the time.
pscp is the Putty Secure Copy client that works from a command line in windows with the same restrictions as winscp



SSH Servers for windows..
http://ist.uwaterloo.ca/~kscully/CygwinSSHD_W2K3.html
http://web.mit.edu/pismere/ssh/ssh-port.html
http://www.itefix.no/i2/copssh
 
Old 12-04-2008, 07:25 AM   #6
kapilbajpai88
Member
 
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Original Poster
Rep: Reputation: 41
Question

Quote:
Originally Posted by farslayer View Post
Windows to Windows..hmm

SCP is basically a remote copy (rcp) through a SSH tunnel.. if you wanted to do windows to windows then you would need an ssh server running on both windows machines.

http://en.wikipedia.org/wiki/Secure_copy


WinSCP is just a client that can connect to and SCP to from a machine that is running ssh. I do like winscp and use it all the time.
pscp is the Putty Secure Copy client that works from a command line in windows with the same restrictions as winscp



SSH Servers for windows..
http://ist.uwaterloo.ca/~kscully/CygwinSSHD_W2K3.html
http://web.mit.edu/pismere/ssh/ssh-port.html
http://www.itefix.no/i2/copssh


Hi There,
Thanks for the precious information...
Could you please help in using SCP to copy files from windows to linux5. To do the vice-versa, this is what i used to do :
Using Cygwin on WIn-XP machine :
a) ssh user@IP (of linux machine)
b) Provide the password of linux user
c) once connected, I set the path on windows, where i want the file to be copied
d) finally I use SCP to copy file from linux5 machine, as
scp user@IP: <path of file with extension> .

I am not able to copy files from windows to linux machine.
Please help me in that.

Thank You in advance...
Kapil.
 
Old 12-04-2008, 07:43 AM   #7
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
If all you want to do is start from a windows machine and copy a file from a Linux box, and do it from the command line (don't know why you wouldn't just use winscp for this.. it's easier by far.) then I would use pscp.. Setting up cygwin just to copy a file is over kill imho.

Using PSCP to transfer files securely

Putty is free, it's command line.
Quote:
So to copy the file /etc/hosts from the server example.com as user fred to the file c:\temp\example-hosts.txt, you would type:

pscp fred@example.com:/etc/hosts c:\temp\example-hosts.txt



So to copy the local file c:\documents\csh-whynot.txt to the server example.com as user fred to the file /tmp/csh-whynot you would type:

pscp c:\documents\csh-whynot.txt fred@example.com:/tmp/csh-whynot

Last edited by farslayer; 12-04-2008 at 07:45 AM.
 
Old 12-04-2008, 08:10 AM   #8
kapilbajpai88
Member
 
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Original Poster
Rep: Reputation: 41
Question

Quote:
Originally Posted by farslayer View Post
If all you want to do is start from a windows machine and copy a file from a Linux box, and do it from the command line (don't know why you wouldn't just use winscp for this.. it's easier by far.) then I would use pscp.. Setting up cygwin just to copy a file is over kill imho.

Using PSCP to transfer files securely

Putty is free, it's command line.

Hi There,

Thanks for the suggestion...
Do we have any installer for winscp, or is it a bundled service for Windows ?
Do we have any installer for SSH server for windows , as here, at my workplace, we don't have ssh server installed on windows machines. So, i can't ssh to windows machines either from Linux machine , or from other windows machine.

I haven't used winscp, so it would be ebtter for me, if i can install SSH server on windows machine(s).

please suggest me...

Thank you,
Kapil.
 
Old 12-04-2008, 08:14 AM   #9
john_smith
Member
 
Registered: Apr 2006
Posts: 42

Rep: Reputation: 15
Hi

current directory for the file .
type scp -r <file name> usernemae@IP destination <where to copy>
i suppose that the command if i did not forget .

RGDS
 
Old 12-04-2008, 09:23 AM   #10
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
Quote:
Originally Posted by kapilbajpai88 View Post
Hi There,

Thanks for the suggestion...
Do we have any installer for winscp, or is it a bundled service for Windows ?
Do we have any installer for SSH server for windows , as here, at my workplace, we don't have ssh server installed on windows machines. So, i can't ssh to windows machines either from Linux machine , or from other windows machine.

I haven't used winscp, so it would be ebtter for me, if i can install SSH server on windows machine(s).

please suggest me...

Thank you,
Kapil.
Did you not read or follow ANY of the links in my first post in this thread ? You quoted the entire post, and said 'thanks' I would have thought you would proceed further with the provided information..

You need to take a bit more initiative.
http://www.linuxquestions.org/questi...57#post3361857



/me puts the spoon down and walks away.
 
Old 12-05-2008, 01:31 PM   #11
kapilbajpai88
Member
 
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Original Poster
Rep: Reputation: 41
Smile

Quote:
Originally Posted by farslayer View Post
Did you not read or follow ANY of the links in my first post in this thread ? You quoted the entire post, and said 'thanks' I would have thought you would proceed further with the provided information..

You need to take a bit more initiative.
http://www.linuxquestions.org/questi...57#post3361857



/me puts the spoon down and walks away.
Hi There,
I checked all of them before asking for this help. I didn't get any installer or any specific information there.
one link there has nothing to do with my question, but it was informative as well...
This has nothing to do with spoon-feeding .....
It is obvious, when you suggest someone to try a new thing, and especially for people like me, who are new to Linux, we might ask such silly but important questions...

Thank you anyways,
Kapil.
 
Old 12-05-2008, 01:33 PM   #12
kapilbajpai88
Member
 
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Original Poster
Rep: Reputation: 41
Smile

Quote:
Originally Posted by john_smith View Post
Hi

current directory for the file .
type scp -r <file name> usernemae@IP destination <where to copy>
i suppose that the command if i did not forget .

RGDS
Hi There,

Thank you for the concern...
I will try this information, and hopefully will resolve my query..

Thanks,
Kapil.
 
  


Reply

Tags
scp


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
scp does not work and gives the following error message: scp: FATAL: Executing ssh1 i akay Linux - Networking 16 09-28-2008 11:41 PM
Strangest FTP error on RHEL5. gFTP works. RHEL4 works too. GuitsBoy Linux - Software 1 04-10-2008 08:29 AM
Mounting works, playing music works, reading tags doesn't Celettu Linux - Newbie 7 08-23-2006 12:27 PM
pppoeconf do not works on notebook while it works on desktop ...same configuration sarajevo Debian 2 06-12-2006 02:57 PM
XAWTV works, videodog works, motion works but how to code my own? rylan76 Linux - Hardware 0 01-06-2006 06:30 AM


All times are GMT -5. The time now is 04:27 AM.

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