Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is more secure -- Data transfer using socket programming OR SSH/SCP/FTP

I am still learning socket programming (using Perl) but I have both options ( socket programming and SSH/SCP/FTP) available to transfer the data from remote machines to my local servers.

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

like image 703
Space Avatar asked Apr 15 '10 04:04

Space


1 Answers

Just using sockets doesn't give you any security at all. The right choice depends on the application, the systems you're using, and how much the users understand about what they need to do to use it. For example, if you're interacting with a web server in a secure way, you'll probably end up using TLS/SSL for it. If you're just transferring data between two systems, using ssh might well be the most convenient way.

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

Another alternative is using TLS/SSL, probably with the OpenSSL toolkit (and there are Perl modules with bindings for it.) The programming is more complicated than with ssh, and you'll have to do more work on authentication for it, so it comes back to whatever it is you're trying to do.

Also, FTP isn't secure on its own either.

like image 117
Win Avatar answered Dec 06 '22 10:12

Win