Thursday, January 23, 2014

File Transfers

I prefer to use SCP to transfer files to and from Linux hosts.  If you're transferring from a Windows machine then either use the command line utility Putty SCP (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html) or something like WinSCP (http://winscp.net/eng/download.php)

To transfer a file called stats.txt from current server to the /tmp directory on a server called fred as the user steve do the following.  If you haven't exchanged public keys then you will be prompted for steve's password:-

scp statz.txt steve@fred:/tmp
steve@fred's password:
stats.txt              100%   38MB   6.4MB/s   00:06

No comments:

Post a Comment