SSH-2 is typically used with SFTP and SSH-1 is typically used with SCP. However PSCP is smart. By default, it uses SSH-2 protocol to connect, when it fails, it then uses SSH-1 protocol. You can force pscp to use either SSH-1 (scp) or SSH-2 (sftp) as shown below: So, giving “-sftp” is optional.
Using PSCP to transfer files securely. Chapter 5: Using PSCP to transfer files securely PSCP, the PuTTY Secure Copy client, is a tool for transferring files securely between computers using an SSH connection. If you have an SSH 2 server, you might prefer PSFTP (see ) for interactive use. PSFTP does not in general work with SSH 1 servers, however. 5.1 Starting PSCP PSCP is a command line application.
![]()
This means that you cannot just double-click on its icon to run it and instead you have to bring up a console window. With Windows 95, 98, and ME, this is called an ‘MS-DOS Prompt’ and with Windows NT and 2000 it is called a ‘Command Prompt’. It should be available from the Programs section of your Start Menu. To start PSCP it will need either to be on your PATH or in your current directory. To add the directory containing PSCP to your PATH environment variable, type into the console window: set PATH=C: path to putty directory;%PATH% This will only work for the lifetime of that particular console window. To set your PATH more permanently on Windows NT, use the Environment tab of the System Control Panel. On Windows 95, 98, and ME, you will need to edit your AUTOEXEC.BAT to include a set command like the one above.
5.2 PSCP Usage Once you've got a console window to type into, you can just type pscp on its own to bring up a usage message.
Comments are closed.
|
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |