LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   OpenSSH File Transfer (https://www.linuxquestions.org/questions/linux-newbie-8/openssh-file-transfer-944150/)

ExemptOA 05-09-2012 08:56 PM

OpenSSH File Transfer
 
Hi, i was wondering if it is possible to transfer files from a server to a client using openssh

An example of what i mean:

Using an ssh program like putty: Log into SSH from a local windows or remote windows host, and download a file to the machine accessing the server.

Is this possible? and if so what command would be used?

tailinlinux 05-09-2012 09:21 PM

Quote:

Originally Posted by ExemptOA (Post 4674696)
Hi, i was wondering if it is possible to transfer files from a server to a client using openssh

An example of what i mean:

Using an ssh program like putty: Log into SSH from a local windows or remote windows host, and download a file to the machine accessing the server.

Is this possible? and if so what command would be used?

On my side im using ssh to connect to other computer in gui.
By this im able to copy, cut, delete,add, edit files easily.

Im using Mandriva 2010.2 GNOME Desktop.

suicidaleggroll 05-09-2012 09:23 PM

It's called scp. Where SSH stands for "secure shell", SCP stands for "secure copy", they use the same port and the same protocol. I don't believe putty can do it, but there are other Windows programs that can. WinSCP is one, or Cygwin will provide you with a Linux-like CLI that you can scp to/from as well.

Usage is simple:

Code:

scp localfile user@host:/path/to/remotefile
to send localfile to the remote host, or
Code:

scp user@host:/path/to/remotefile localfile
to retrieve remotefile from the host and save it to localfile

ExemptOA 05-09-2012 09:52 PM

Awesome, thank you :)

this was basically my main reason for having a server, so i could basically use it as my own skydrive. thanks to you its working lol


All times are GMT -5. The time now is 09:36 PM.