Computer Network & Network Security System β Application Layer, NEC licence examination syllabus (Nepal Engineering Council).
Three different tools, all solving "get a file from here to there over a network."
Two connectionsA CONTROL connection (commands like login, list files) stays open the whole session, while a separate DATA connection is opened just for each actual file transfer.
Active vs Passive modeActive: the SERVER initiates the data connection back to the client. Passive: the CLIENT initiates it β passive mode plays much nicer with firewalls, which is why it's the common default today.
PuTTYAn SSH client β lets you securely log into and run commands on a remote machine's command line.
WinSCPA graphical SFTP/SCP client β the "drag and drop files" experience for securely transferring files to/from a remote server, built on the same secure SSH foundation as PuTTY.
Two connections for one file transfer looks wasteful. It follows from a genuine design need.
The control connection stays open for the whole session carrying commands and replies; the data connection is opened per transfer and closed when it finishes. Keeping them separate means a command can be sent during a transfer β most importantly an abort β because the control channel is not blocked by the file moving on the other one.ActiveThe SERVER opens the data connection back to the client. To the client's firewall this is an unsolicited inbound connection, which it blocks β the client asked for a file and is now being connected to from outside.
PassiveThe CLIENT opens both connections. Everything is outbound from the client's side, so a stateful firewall permits it as return traffic for a conversation the client started.
FTP sends credentials and file contents in plain text. Anyone able to observe the traffic reads both β the password included.
SFTPFile transfer carried inside SSH. One connection, one port, encrypted throughout. This is what PuTTY and WinSCP use.
FTPSOrdinary FTP wrapped in TLS. Keeps FTP's two-connection design, so it inherits the same firewall awkwardness.
Create a free account to tick topics off, take notes as you read, watch the video lessons and get a day-by-day study plan built around your exam date.
Loadingβ¦