0% found this document useful (0 votes)
156 views2 pages

PuTTY Server

To upload a website to a remote server: 1. Download PuTTY and PSCP from the official website and set up an environment path. 2. Use the pscp command line tool along with the server address, account details, and file/directory paths to copy files from the local desktop to the home directory on the remote server. 3. As an alternative, files can be pushed to a GitHub repository and then cloned from the repository URL within the server's var/www/html directory.

Uploaded by

enockkays
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
156 views2 pages

PuTTY Server

To upload a website to a remote server: 1. Download PuTTY and PSCP from the official website and set up an environment path. 2. Use the pscp command line tool along with the server address, account details, and file/directory paths to copy files from the local desktop to the home directory on the remote server. 3. As an alternative, files can be pushed to a GitHub repository and then cloned from the repository URL within the server's var/www/html directory.

Uploaded by

enockkays
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

***************How to upload a website to a remote server***************

#1). Download PuTTY and PSCP from the official website.


https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

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.

#2). Server address: 121.4.94.30

#3). Account Details


Account name: *****
Password: *********

After you login, by default you will be in the home directory for example
"/home/<yourname>".
That is the directory for storing your files.

******How to Use Putty pscp to Copy Files to the server*******


pscp is a command-line client for the SSH-based SCP (secure copy) and SFTP
(secure file transfer protocol)
protocols. PuTTY has a GUI while Putty Secure Copy (pscp) does not have. It is
basically a command line tool
therefore, we use the windows command prompt to upload the files to our remove
server.

#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.

*****Testing the Uploaded files*****


After uploading your files in the directory var/www/html open your browser
and type 121.4.94.30/<filename>
the lrr website should open.
***** The Second way of uploading the files to the remote server *****

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.

#1). Push the files to your github repository


#2). Navigate to the directory var/www/html type the commad git clone
<Repository url>

It's done.

You might also like