Command line scp from linux(+BSD) to windows.

i traveling and wanted to copy over my logs to find out what was happening on my server. didn’t want to install a client like filezilla or another GUI. Using the command line SCP utility, you can grab remote files securely over SSH. You can grab the executable from http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html (pscp.exe is what you want) then, in the command line on the windows client machine, type something like this:

pscp -r -P 22 jimmy@johnscomputer.com:/home/jimmy/stuff "c:\documents and settings\jimmy\Desktop"

The “-r” makes it grab the whole folder, and everything under. the “-P” specifies a port (mostly useful if you aren’t using 22. make sure it is capital).

Related posts:

  1. Linux command line bandwidth monitor
  2. Windows 32 (x86) or 64 (AMD64) detection in batch files
  3. Windows XP’s /etc/hosts file
  4. Join Debian Lenny to Active Directory using Samba

  1. No comments yet.

  1. No trackbacks yet.

 

Switch to our mobile site