Re: transferring files without NFS, SMB, HTTPD, or whatever

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 17 Oct 2005 01:56:56 +0930, Tim wrote:

> If I only have SSH access to a remote box, no option to set up NFS, SMB,
> use a HTTP or FTP server, what method do I use to copy a file from one
> box to the other?
> 
> -- 
> Don't send private replies to my address, the mailbox is ignored.
> I read messages from the public lists.

You use scp, whose syntax is similar to cp:

scp source destination

Either source or destination can be remote. You specify the remote
location by pre-pending it with user@xxxxxxxxxxxxxx: (note the : ). 


For instance:

scp user@xxxxxxxxxxxxxxxxxx:/path/to/file local_file

copies /path/to/file from the remote machine to local_file (in the current
directory where scp is being run).


It also works the other way around:

scp local_file user@xxxxxxxxxxxxxxxxxx:.

will copy local_file to users' home directory on the remote machine. The .
is important. It's the current directory on the remote machine, which
defaults to the users' home directory.






[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux