PuTTY Server
PuTTY Server
To be sure the utility launches correctly from any directory in the Command
Prompt window, set up an
environment path so your system knows where to look for it. You'll use the
pscp.exe location that
you made note of in Step 2. For example, set up a path by entering set
PATH="%PATH%;%ProgramFiles%\putty"
at the prompt in the Command Prompt window.
After you login, by default you will be in the home directory for example
"/home/<yourname>".
That is the directory for storing your files.
#1). Place the files that you want to upload on the Desktop.
#2). Open the command prompt
#3). Change the directory to the Desktop using the following command;
-- cd Desktop
-- dir //(this command will show you all the files on the Desktop)
The code below is the syntax for uploading a file to the remote server.
#4). pscp [options] [user@]host:source target
#5). pscp [options] source [source...] [user@]host:target
For Example;
-- pscp -P 22 lrr-simplicity.zip [email protected]:enock
-P 22 means port: port number and by default PuTTY uses port number 22.
lrr-simplicity is the file name I want to upload.
[email protected] is the username and the server ip address where the files
are being uploaded.
enock is the directory where the files being uploaded are going into. when
uploading your files
replace enock with the directory you want to upload your files to e.g
var/www/html.
With this method you don't need to have the PSCP (PuTTY Secure Copy) to be
installed however we are
still going to use PuTTY. Only use this method when you have trouble working
with the PSCP.
It's done.