Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I use netcat to chat in LAN.

PC1 listen port 8080

$ nc -l -p 8080

PC2 connect to PC1:8080

$ nc 192.168.10.1 8080

Unfortunately, this is not secure. Anyone sniffing packets can intercept my messages.
How can I chat securely?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

You should use socat instead.

Securing Traffic Between two Socat Instances Using SSL

Introduction

When you want to connect two socat processes running on different machines and feel that you need to protect the connection against unauthorized access, sniffing, data manipulation etc., you might want to encrypt the communications.

For this purpose socat integrates the OpenSSL library and provides SSL client and server features.

...

share|improve this answer
    
great tool. Thanks. –  kev Jan 8 '12 at 15:36

SSH would be an easy way. SSH to the machine then use netcat

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.