Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I need to use telnet to talk with a socket server which is not a standard Telnet server. I do not want any Telnet negotioation or interference of any kind in the data.

This is available as 'raw mode' in PuTTy and I need the same functionality in Linux.

share|improve this question
1  
Do you know netcat? –  sr_ Feb 15 '12 at 10:45
    
I added that I need a command line telnet client (so Putty on Linux does not work for me). –  Eden Feb 15 '12 at 11:47
    
I am connecting to a MOXA product which is a TCP server for remotely connecting to a serial port (of a legacy product). It needs to be raw so that all keystrokes will be sent as is. –  Eden Feb 15 '12 at 12:19
    
Basically I need 'telnet-like' functionality but without the protocol. I also tried netcat (suggested above) but that did not work nicely - it is in line edit mode and keystrokes like ^C are not passed. –  Eden Feb 15 '12 at 12:23
    
As another pointer, have a look at socat, it is a lot more feature-packed than netcat; maybe you can utilize it. –  sr_ Feb 15 '12 at 12:49

2 Answers 2

At risk of sounding daft, why not just use PuTTY? If you already like the functionality it gives you, just run it. PuTTY is available for Linux or Windows

As already pointed out in comments, telnet isn't raw - it expects certain protocols to be followed.

share|improve this answer
    
+1 Rory. Telnet isn't raw. Use 'set options' on the telnet> prompt and you'll see the protocols in action. –  Stephen Quan Feb 15 '12 at 10:51

You can use telnet to connect to any port provided that there is something listening to that port and it is not blocked by a firewall.

telnet alt1.aspmx.l.google.com 25
telnet google.com 80

Will all work fine. However, you must know what protocol is used by the other end of the connection otherwise, it is kind of pointless.

Note that telnet sends packets unencrypted.

share|improve this answer
1  
Beware: telnet seems "raw", but it isn't. There is already some protocol level involved even if limited. What are you trying to achieve here ? –  Ouki Feb 15 '12 at 10:21

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.