ftpserver tutor
TRANSCRIPT
-
7/25/2019 FTPserver Tutor
1/41
FileTransferProtocol
Name:
Designation:
Date: February, 2004
Copyright Wipro Technologies 2005
Author : R. Ajay Kumar
Date : 25.04.2005
Introduction to FTP
-
7/25/2019 FTPserver Tutor
2/41
Agenda
Introduction to FTPDifferent types of FTP ClientsWINSCPWS_FTPDifference Between WINSCP and WS_FTPHow to use WINSCPHow To se WS_FTP
-
7/25/2019 FTPserver Tutor
3/41
Introduction To FTP
FTP is an acrony! for File Transfer Protocol" Itrepresents a widely#used$ alt%oug% non#secure$!et%od for transferring files &etween twoco!puters" 'ne of t%e co!puters !ust &e set up as a%ost or ser(er" T%e ot%er$ )nown as t%e client$ is t%eco!puter t%at you are using"
T%ere are two &asic types of operations"ploadingDownloading
-
7/25/2019 FTPserver Tutor
4/41
Downloading 'f Files
W%en you retrie(e a file fro! t%e ser(er$ you are
perfor!ing a *get+ operation" T%is is also )nown as*downloading+"
-
7/25/2019 FTPserver Tutor
5/41
ploading 'f Files
W%en you post a file to t%e ser(er$ your are
perfor!ing a ,put, operation" T%is is also )nown as,uploading",
-
7/25/2019 FTPserver Tutor
6/41
Different Types of FTP Client
WINSCPWS_FTP-FTPCT.FTPS/A0TFTPFI1.2I11A
-
7/25/2019 FTPserver Tutor
7/41
WinSCP
WinSCP is an open source freeware SFTP 3SecureFile Transfer Protocol4 client for Windows singSSH"
SSH is a cryptograp%ically protected re!ote loginprotocol designed to replace t%e insecure telnet andrlogin protocols
Its !ain function is safe copying of files &etween alocal and a re!ote co!puter"
WinSCP supports two secure transfer protocols$SFTP and SCP"
-
7/25/2019 FTPserver Tutor
8/41
WS_FTP
WS_FTP is a Windows#&ased Internet tool fortransferring files &etween your personal co!puterand a re!ote co!puter"
T%e re!ote co!puter !ay &e a !ainfra!e$ ser(er$or des)top co!puter" It !ay &e running a (erydifferent operating syste!$ and is often a great
distance away"
As an e5a!ple$ one !ay wis% to download a file
fro! a local ca!pus NI6 ser(er to a des)top PC"
-
7/25/2019 FTPserver Tutor
9/41
Difference Between WinSCP andWS_FTP
T%e difference is t%at WINSCP is secure" T%eWS_FTP uses clear te5t passwords t%an can &esniffed7intercept &y !alicious indi(iduals" T%esepasswords can t%en &e used to co!pro!ise youraccount" WINSCP$ on t%e ot%er %and$ encrypts alldata transfers so passwords cannot &e intercepted"
-
7/25/2019 FTPserver Tutor
10/41
WINSCP
WINSCP
-
7/25/2019 FTPserver Tutor
11/41
How to use WINSCP#Step 8
Connecting to Anot%er Co!puter
WINSCP auto!atically displays t%e Session Properties dialog&o5 w%en you launc% t%e progra!" se t%is dialog &o5 toconnect to t%e re!ote co!puter fro! w%ic% you want totransfer files"
.nter t%e IP of t%e re!ote syste!$ ser na!e and password"
-
7/25/2019 FTPserver Tutor
12/41
How to use WINSCP#Step 9
T%e ne5t window you see will display two file syste!s" T%epanel on t%e left lists t%e files on your local %ard dis) 3usuallyt%e C: or D: dri(e4$ and t%e panel on t%e rig%t s%ows t%ena!es of files stored on t%e ser(er" 'n &ot% sides you
can use t%e folder na(igation &uttons 3circled in red &elow4 tolocate t%e source and destination directory for t%e filetransfer"
-
7/25/2019 FTPserver Tutor
13/41
WinSCPMain Screen Window
-
7/25/2019 FTPserver Tutor
14/41
File Transfer
Start fro! t%e side of t%e screen containing t%e file you want
to transfer 3note t%at t%e title &ar for t%e acti(e side is &lue$w%ile t%e inacti(e title &ar is gray4" Si!ply clic) on a file toselect it it for transfer"
To e5ecute t%e transfer clic) t%e Copy icon 3also circled in red4or %it F;" I!portant: if you use F< /o(e instead$ t%e file will
&e deleted fro! its original location"
-
7/25/2019 FTPserver Tutor
15/41
Copying the files
To e5ecute t%e transfer clic) t%e Copy icon 3also circled in red4
or %it F;"
After you initiate t%e Copy function$ a dialog &o5 will appearas)ing you confir! t%e target directory for t%e transferoperation" If t%e directory is not correct$ clic) Cancel and use
your !ouse to &rowse to t%e correct directory fro! t%e
pre(ious screen" 'nce t%e target directory is correct$ clic)Copy to continue"
-
7/25/2019 FTPserver Tutor
16/41
WinSCP#File copy
-
7/25/2019 FTPserver Tutor
17/41
/o(ing a File
If you use F< /o(e$ t%e file will &e deleted fro! its original
location"
Also$ !a)e sure you !o(e t%e file in t%e rig%t direction oryou=ll end up destroying t%e !ore recent (ersion"
-
7/25/2019 FTPserver Tutor
18/41
Deleting a File
If you use F> /o(e$ t%e file will &e deleted fro! t%e specified
location"
Confir!ation !essage is displayed &efore deleting a file$ 'nclic)ing o) t%e file will &e deleted or on clic)ing on t%e cancelt%e deletion process is ter!inated"
-
7/25/2019 FTPserver Tutor
19/41
WinSCP#Delete File
-
7/25/2019 FTPserver Tutor
20/41
Disconnecting
Session !enu$ or clic) t%e Disconnect icon fro! t%e lower
rig%t#%and corner of t%e window$ or press t%e F8? )ey andconfir! t%at you would li)e to disconnect"
-
7/25/2019 FTPserver Tutor
21/41
WS_FTP
WS_FTP
-
7/25/2019 FTPserver Tutor
22/41
How to se WS_FTP
Connecting to Anot%er Co!puter
WS_FTP auto!atically displays t%e Session Properties dialog&o5 w%en you launc% t%e progra!" se t%is dialog &o5 toconnect to t%e re!ote co!puter fro! w%ic% you want totransfer files"
For t%e Host Na!e enter t%e IP address of t%e syste! youwant to connect" For ser ID and Password$ enter t%e ID andpassword for t%e co!puter you are connecting to"
-
7/25/2019 FTPserver Tutor
23/41
Transferring files
Transferring files using WS_FTP
WS_FTP %as four windows" T%e windows on t%e rig%t displayt%e directories and files on t%e re!ote co!puter$ and t%e
windows on t%e left s%ow t%e directories and files on yourlocal co!puter" T%e top window on eac% side lists t%e currentdirectory "
and t%e &otto! windows list t%e files and folders in t%eselected directory"
@ steps in transferring a file
Na(igating directories
Downloading files
ploading files
-
7/25/2019 FTPserver Tutor
24/41
WS_FTP 1ogin Screen
-
7/25/2019 FTPserver Tutor
25/41
Na(igating7Downloading 'peration
Na(igating directories
T%e easiest way to c%ange directories is to dou&le#clic) t%edesired directory in t%e WS_FTP window" T%is !o(es you intot%at directory and displays t%e files in it" To !o(e up in t%edirectory structure$ dou&le#clic) t%e two dots t%at appear in
t%e directory list" T%e ," ", notation indicates t%e parentdirectory"
Downloading files
se t%e rig%t side of t%e WS_FTP window to na(igate t%edirectories on t%e re!ote co!puter until you find t%e file you
want to download" Select t%e file on t%e re!ote co!puter andclic) t%e left pointing arrow" /o(e t%e file to t%e destinationdirectory on t%e local syste!"
-
7/25/2019 FTPserver Tutor
26/41
ploading 'peration
ploading files
se t%e left side of t%e WS_FTP window to na(igate t%edirectories on your local co!puter until you find t%e file you
want to upload" Select t%e file on your local syste! and clic)t%e rig%t pointing arrow" /o(e to t%e destination directory ont%e re!ote syste! 3t%e directory you want to upload t%e file
to4 using t%e rig%t side of t%e WS_FTP window"
-
7/25/2019 FTPserver Tutor
27/41
WS_FTP /ain Screen
-
7/25/2019 FTPserver Tutor
28/41
File Transfer /odes
T%ere are two ways of transferring files (ia FTP: ASCII and
Binary" So!e FTP clients %a(e an ,auto, !ode$ &ut (ery few of t%e!
%a(e settings for all file types &y default"
Binary Transfer /ode
In Binary !ode a file is copied &it for &it fro! one !ac%ine tot%e ot%er" Bot% files 3t%e original and t%e transferred file4 willcontain e5actly t%e sa!e seuence of &ytes"
ASCII Transfer /ode
In ASCII !ode a file !ay &e c%anged slig%tly to !aintain t%e!eaning of .'1 3.nd 'f 1ine4 c%aracters"
-
7/25/2019 FTPserver Tutor
29/41
a
In order to preser(e t%e !eaning of t%ese ends of lines w%en
transfering files$ t%e end of line c%aracters %a(e to &ec%anged" W%en going fro! NI6 to D'S$ 1F=s 3linefeed4 %a(eto &e replaced wit% C071F 3carriage return4 pairs" Si!ilarly$
w%en going fro! D'S to NI6$ C071F pairs %a(e to &ec%anged to a single 1F" T%at is t%e difference &etween t%e!"
ASCII 3te5t4 files:# Files na!ed "cgi$ "t5t$ "s%t!l$ "%t!l and "%t!
Binary files:#
"&in$ "doc$ "e5e$ "gif$ "g$ "pg$ "peg$ "!pg$ "!peg$ "pdf$ "tar$ "tiff$
"tif$ "wa( and "ip
-
7/25/2019 FTPserver Tutor
30/41
Disconnecting 'peration
Disconnecting
Clic) t%e Close &utton"
Clic) t%e .5it &utton to uit WS_FTP or t%e Connect &utton toconnect to anot%er co!puter
-
7/25/2019 FTPserver Tutor
31/41
Tips to se WINSCP and WS_FTP
ou can !o(e !ultiple files in a single operation" Hold t%eECtrl )ey down as you clic) files to &e !o(ed wit% t%e !ouse
ou can delete files$ rena!e files$ !o(e files &etweendirectories 3folders4$ and create new directories" /ost oft%ese operations use !ouse and )ey&oard tec%niues t%at you!ay already &e fa!iliar wit% fro! using Windows"
-
7/25/2019 FTPserver Tutor
32/41
WS#FTP G WINSCP tool#1icense7Cost Details
WINSCP #WinSCP is free$ open#source software$ and is
distri&uted under t%e N eneral Pu&lic 1icense 3P14"
WinSCP can &e downloaded fro! t%e Following 1in)s
%ttp:77winscp"net7eng7download"p%p
WS_FTP It is a licensed Software" WS_FTP 1i!ited .ditionis free to certain acade!ic$ "S" go(ern!ent and non#&usiness%o!e users as defined &elow in t%e WS_FTP 1i!ited .dition.nd ser 1icense Agree!ent" All ot%er users !ust purc%ase alicense to WS_FTP Pro$ t%e ad(anced co!!ercial (ersion
-
7/25/2019 FTPserver Tutor
33/41
WS#FTP tool#1icense7Cost Details
your use of t%e Software is e5clusi(ely at %o!e for non#
&usiness purposes" o(ern!ent contractors are notconsidered go(ern!ent e!ployees for t%e purposes of t%isAgree!ent"
If you do not !eet t%e reuire!ents for free use of t%eSoftware$ you e(aluate or purc%ase a license to WS_FTP Pro$
a co!!ercial (ersion of t%is product" If you are using t%eSoftware free of c%arge under t%e ter!s of t%is Agree!ent$
you are not entitled to %ard#copy docu!entation$ support ortelep%one assistance
If users want to use t%e %ig%ly regarded Ipswitc% line ofproducts$ t%e price for WS_FTP Ho!e at t%e ti!e of t%iswriting is appro5i!ately SJ@; fro! t%e Ipswitc% we& site"
-
7/25/2019 FTPserver Tutor
34/41
We&site w%ere WS_FTP$WinSCP can &e downloaded:
FTPplanet"co!
%ttp:77www"ftpplanet"co!
CoreFTP we& site%ttp:77www"coreftp"co!
Ipswitc% we& site%ttp:77www"ipswitc%"co!
CuteFTP we& site%ttp:77www"cuteftp"co!7cuteftp
WinSCP we& site
%ttp:77winscp"net7eng7download"p%p
-
7/25/2019 FTPserver Tutor
35/41
Default port 98 settings
Default Port 98 Setting:
FTP Pu&lis%ing Ser(ice pro(ides FTP connecti(ity" By default$t%e FTP control port is 98"
T%e default data 3t%at is used for acti(e !ode FTP4 port isauto!atically set to one port less t%an t%e control port"T%erefore$ if you configure t%e control port to port K8@8$ t%edefault data port is port K8@?"
/ost FTP clients use passi(e !ode FTP" T%is !eans t%at t%eclient initially connects to t%e FTP ser(er &y using t%e controlport$ t%e FTP ser(er assigns a %ig% TCP port &etween ports8?9; and ;???$ and t%en t%e client opens a second connectionto t%e FTP ser(er for transferring data" ou can configure t%erange of %ig% ports &y using t%e IIS !eta&ase"
-
7/25/2019 FTPserver Tutor
36/41
Default port 98 settings
Syste! ser(ice na!e: /SFTPSLC
Application protocol ProtocolPorts
FTP controlTCP 98
FTP default dataTCP 9?
0ando!ly allocated %ig% TCP portsTCPrandom port numberbetween 1024 - 65534
-
7/25/2019 FTPserver Tutor
37/41
Networ) connection ti!e out settings
File Transfer Protocol" A protocol for transferring te5t and&inary files o(er t%e internet" ou can use t%is ser(ice to!onitor your FTP Ser(er t%at is running on t%e default port 983if you need to !onitor an FTP ser(er t%at is running on adifferent port$ you can use t%e TCP Port ser(ice4"
'ur !onitoring station will atte!pt to connect to port 98 of
t%e %ost 3eit%er IP or do!ain na!e4 and wait for a responset%at starts wit% sustring ,99?," T%e connection will ti!eoutafter @? seconds" If response ,99?, is not recei(ed$ t%e ser(ice
will &e considered to %a(e ,failed,"
-
7/25/2019 FTPserver Tutor
38/41
Networ) ti!e out settings in WS_FTP
-
7/25/2019 FTPserver Tutor
39/41
Ad(ance Ta& of WS_FTP
Site Properties !d"anced Ta#
Connection $etry% N&'#er of ti'es to retry esta#lishing a
connection if the first connection atte'pt fails%
Networ( Ti'eo&t% This is the n&'#er of seconds #efore WS)*TP
Pro ti'es o&t waiting for an *TP site to respond to a co''and%
Note that the initial connection ti'eo&t is deter'ined #y yo&r
Winsoc( D++% Setting this "al&e higher does not ha"e any effect on
the initial connection to the *TP site% Setting it to less than the
a'o&nt of ti'e than yo&r Winsoc( D++ &ses will ca&se the
connection to fail in that a'o&nt of seconds%
-
7/25/2019 FTPserver Tutor
40/41
Ad(ance Ta& of WS_FTP
$e'ote Port% This is the port to connect to on the *TP site% This is
nor'ally 2, howe"er it 'ay #e so'ething different if yo& are
going thro&gh a firewall or if the site ad'inistrator has assigned
the *TP ser"ice to a non-standard port%
Passi"e transfers% Select this option if yo& want yo&r PC to
esta#lish the data connection to the *TP site instead of the site
esta#lishing the data connection to yo&r PC% This is necessary forso'e firewall and gateway config&rations and when yo& get failed
data channel errors% Note. not all *TP sites s&pport passi"e
transfers%
-
7/25/2019 FTPserver Tutor
41/41
Than( /o&
Than( /o&