Beruflich Dokumente
Kultur Dokumente
- Telnet , SSH
- FTP, SFTP
- SMTP
352362 - Network Operating Systems and
Protocols
Choopan Rattanapoka
•
2
– Client/Server Architecture
– Peer to Peer (P2P) Architecture
•
Client/Server Architecture
!"
#
$%&
2
'(
– Client
– Server
Client-Server Architecture
•
Client
–
Server
–
Server
•
Server
–
Client
–
Client
Server
Client
•
Client/Server
Client
Server
Client !
Client " !#
Client-Server Architecture
Servers
Clients
Client-Server Architecture
•
–
Client Server !"
upgrade #$ , $$ %& ' ( Server
)*+$,+$!- Client
– .((. Server !/)* Server
' (!/-*$)0! (1!/ +)
– ) *'
#$
-
– Server ' (!/-*$)0!
+)
Client-Server Architecture
•
– !
"#$ %
# Server &' (
–
Server
)( " #*#
%
$+
&
,"#+
- A - B
' M
Pv(Pb(M)) = M
Pb(M)
B’s Public key B’s Private key
Exercise 1
1)
TCP port
23 (telnet service)
telnet !"#! 202.44.36.14 $%
login : ect
password : mypass
Telnet &'&%
Telnet (%)
2)
# 1 +%, wireshark
TCP ! port
22 (ssh service)
$ ssh (putty.exe) -#!+%
server ,
login/password .&
ssh &%
)#%
File Transfer Protocol (FTP)
• 2(
%,% download/upload !3*%)+'+
Server
Client
• FTP 2(
'+--$ port
%(
2
port
– Port
&'
%"&# (port 21 /ftp)
– Port &# &'/,$
(port 20 /ftp-data)
• Windows
Linux FTP client %!# #
$($*
',+
ftp <
FTP server>
ftp ! "
#$ prompt
FTP
•open
FTP server open
ftp server
•ascii
ascii
•binary
binary
•get ! " download !#
•put ! " upload !# server
•ls, dir " !$% server
•hash &
' # ()$%
•cd "% directory $%$*
FTP VS SFTP
•
,++ FTP %
telnet '!
% ,%
#
password 6(#
FTP server !#
• #+
+)%7
SFTP
(secure FTP) -.+%+" #)
public/private
key % SSH
•
FTP $
06 (!+
login/password )))
/ +
+
$%
Exercise 2
• %,)%0 ftp )*#
ftp server NECTEC
)* ftp.nectec.or.th
server
•
1)
'%& + fakemail !##+
%
Exercise 3
• %)* SMTP server mail.kmutnb.ac.th
• %
, email 2.%(-*%
• Email 2.%%789(-*. @kmutnb.ac.th
#)! SMTP "
#%2
• Subject mail %& Hello fakemail
• ! email %789