What's more secure is data transfer using socket programming OR SSH / SCP / FTP

I'm still learning socket programming (using Perl), but I have both options (socket programming and SSH / SCP / FTP) available for transferring data from remote computers to local servers.

But I have to choose the one that is more secure (encrypted data on the network) in terms of data transfer. Any suggestions.

+5
source share
6 answers

Just using sockets does not give you any security. The right choice depends on the application, the systems you use, and how users understand what they need to do to use it. For example, if you interact with the web server in a secure way, you are likely to end up using TLS / SSL for it. If you just transfer data between two systems, using ssh may very well be the most convenient way.

When you say "security", are you looking for encrypted data on the network? Authentication of communicating parties? Both?

TLS/SSL, , OpenSSL ( Perl ). , ssh, , , .

, FTP .

+5

. , .

, , SSL (https, sftp, ftps)

+2

SSH/SFTP/SCP . ( ), , SSH, SSH Perl.

+1

. A B.

SSL . SSL. , FTP HTTP SSL.

FTPS . , , FileZilla , .

, FTPS.

+1

SSH - (, FTP). SCP SSH1, SSH1 , SCP . SSH2 ( ) SFTP ( SSH).

FTP (RFC 959) . , FTP SSL/TLS ( , , TLS FTP). FTP SSL FTPS ( SFTP).

FTPS SFTP .

+1

:

  • FTPS (FTP SSL/TLS) - HTTPS, FTP. , , , . X.509. , , FTP, . - , - , , IMHO. , .

  • SFTP (SSH FTP) - , , FTPS, , , . , . script . , - .

  • VPN - , , - VPN . , , , .

0

All Articles