You can add the -r option to both commands to transfer directories. This command will upload a file called examplefile.txt from the working directory on your local computer to the working directory on your account. Files can be uploaded with the put command: put examplefile.txt. cd public_html) and the working directory on your local computer with lcd (e.g. The working directory on your account can be changed with the command cd (e.g. This command will download the file examplefile.txt from the current working directory on your account to the current working directory on your local computer. The simplest form of the command looks like this: get examplefile.txt. You can download files with the get command. The commands for uploading and downloading are not the same as the PSCP commands. To start PSFTP, after you execute the set path command type psftp (e.g. To transfer a whole directory together with the subdirectories just add the -r option to the command: e.g. You only need to put the path to the file on your account first and then the path on your local computer: pscp d:\documents. You have to replace username in both places with your actual username and, if needed, the server name. An example command with which you can upload a file from your local computer to your account is: pscp d:\documents\example.txt This command will upload a file called example.txt from the documents folder on your local D drive to the public_html directory on your account. To start PSCP you don't need to do anything else, you can directly execute commands. Just change the path to point to your PuTTY folder. The command is valid if the PuTTY installation package is installed in a folder called putty on your local D drive. After you start your Windows Command Prompt ( Start button> Run>type cmd> OK) type the following command to add PSCP and PSFTP to the system path, and press Enter: set path=%path% d:\putty. The main difference between them is that PSCP can be used only for file transferring while PSFTP can also be used to browse the folders on your hosting account, delete files and folders, etc.īefore you can connect to your account and transfer files you have to open Pageant (one of the applications that comes with the PuTTY installation package) and add your private SSH key. They are both command line applications which means that they have be to launched and used through Windows Command Prompt. They both use SFTP (SSH File Transfer Protocol) to transfer files through SSH PSCP can also use the older protocol SCP (Secure Copy). The ones used for transferring files are PSCP and PSFTP. The PuTTY installation package contains the PuTTY application itself and a few other applications. To learn more on how to do this read the tutorial on connecting to your account through SSH via PuTTY. To do this first you need to download and install the PuTTY installation package and have a working SSH connection to your account. Knowledgebase How to upload and download files through SSH using PuTTYĪs well as for executing commands SSH can also be used to transfer files between your local computer and your hosting account.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |