LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How SCP works? (https://www.linuxquestions.org/questions/linux-newbie-8/how-scp-works-687725/)

kapilbajpai88 12-02-2008 09:17 AM

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.

IsharaComix 12-02-2008 09:24 AM

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.

kapilbajpai88 12-02-2008 09:29 AM

Quote:

Originally Posted by IsharaComix (Post 3361817)
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.

colucix 12-02-2008 09:32 AM

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?

farslayer 12-02-2008 09:59 AM

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

kapilbajpai88 12-04-2008 07:25 AM

Quote:

Originally Posted by farslayer (Post 3361857)
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.

farslayer 12-04-2008 07:43 AM

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

kapilbajpai88 12-04-2008 08:10 AM

Quote:

Originally Posted by farslayer (Post 3364222)
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.

john_smith 12-04-2008 08:14 AM

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

farslayer 12-04-2008 09:23 AM

Quote:

Originally Posted by kapilbajpai88 (Post 3364258)
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.

kapilbajpai88 12-05-2008 01:31 PM

Quote:

Originally Posted by farslayer (Post 3364350)
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.

kapilbajpai88 12-05-2008 01:33 PM

Quote:

Originally Posted by john_smith (Post 3364264)
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.


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