Command Line SCP for Windows

I do not use FTP, and you shouldn’t use it either. Sending your password and files over the tubes in plaintext form might have been ok in the 80’s but nowadays it’s just asking for trouble. I use scp for all my file transfer operations.

Now, as every self respecting geek I have cygwin installed on every windows box I use. But sometimes going through cygwin is an overkill. For example if I simply want to process and upload 1 small file to a remote machine I really shouldn’t have to install cygwin environment just to get access to command line scp version. I should be able to do this from an ordinary batch script.

This is where PuTTY comes into play. But wait, you say, PuTTY is a graphical SSH client for windows. What does it have to do with SCP? To that, I answer: “Very good question, voice in my head. Let me explain…”

If you go to to the official PuTTY download page and scroll down you will see a link to pscp.exe. What is that? It is exactly what I’m talking about here. A command line scp client for windows.

Just download it, rename it to scp.exe, stick it somewhere in your path and you are ready to go. It works almost the same like the real thing with few little exceptions. But it is great tool for automated upload scripts.

Related Posts:

  • Windows Administration Commands
  • WinXP Home Box Administration
  • Windows Run Command is your Friend
  • Get a md5 of a string on a command line
  • Mini SFTP Server for Windows
  • Hard Links and Junctions in Windows
  • Convert JPG and PNG to EPS on Windows
  • How to find out the version of your OS
  • Substrings in Windows Batch Files
  • How do you lock down XP Home?

  • 2 Responses to “Command Line SCP for Windows”

    1. Gravatar Craig Betts UNITED STATES Says: Reply to this comment

      Some of my customers want to transfer files through a gui, so I support WinSCP (http://www.winscp.net/). It will use the sftp or scp method behind the scenes. Best of all, it also will use pageant for the ssh-agent! WinSCP is the missing piece from PuTTY!

      Posted using Mozilla Firefox Mozilla Firefox 1.5.0.7 on Solaris Solaris
    2. Gravatar Luke UNITED STATES Says: Reply to this comment

      Yeah, winscp is a great tool. In fact there are many GUI applications that will do ssh, scp or both on windows. I just needed something that can be silently called from a batch file without any need for user interaction (eg. as part of a login script).

      Posted using Mozilla Firefox Mozilla Firefox 1.0.8 on Ubuntu Linux Ubuntu Linux

    Leave a Reply

    XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <pre lang=""> <em> <i> <strike> <strong>

    [Quote selected]