Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Terminal or PuTTY for Mac

Hi,

On the windows side, there is a program called PuTTY that I use all the time, and in particular there was a setting that I cannot seem to find on any other program.

When opening a connection, I could select SSH, Telnet, RLogin etc but the one I am interested in is Raw.

I more than happy that Terminal will suffice for most things but cannot seem to get this to work.

Any help on getting Terminal to work or an application that can do it would be great. On the iPhone there is an App called pTerm that does exactly what I want it to do.

There is a PuTTY version for Mac but its seems to be a bit clunky and have to install darwin ports etc.

Thanks

Gavin

Mac Mini; Macbook Pro; iPhone 16GB, Mac OS X (10.5.7)

Posted on Aug 3, 2009 3:10 PM

Reply
6 replies

Aug 3, 2009 4:05 PM in response to gavjones

PuTTY's raw connection type is just a way of making a raw TCP connection. You can use telnet or nc to achieve the same thing in Terminal:

will@Darwin:~> nc relay.plus.net 25
220 relay.plus.net ESMTP Exim Tue, 04 Aug 2009 00:02:08 +0100
helo
250 pih-relay08.plus.net Hello [1.2.3.4]
quit
221 pih-relay08.plus.net closing connection

will@Darwin:~> telnet relay.plus.net 25
Trying 212.159.8.107...
Connected to relay.plus.net.
Escape character is '^]'.
220 relay.plus.net ESMTP Exim Tue, 04 Aug 2009 00:03:10 +0100
helo
250 pih-relay08.plus.net Hello [1.2.3.4]
quit
221 pih-relay08.plus.net closing connection
Connection closed by foreign host.

Aug 3, 2009 4:50 PM in response to gavjones

Not knowing anything about PuTTY, I'll assume "SillyWilly" has the real answer. However, just in case, I'll ask the question: Are you looking for a mode where the terminal does not interpret the control characters sent to the terminal? That is to say a mode where you can see escape, line feed, carriage return, tab, bell, etc...

If that is what you desire, then you might try piping your output through

cat -te

Aug 4, 2009 12:49 AM in response to SillyWilly

Hi,

I have just tried telnet and got the following response:
Last login: Tue Aug 4 08:46:46 on ttys001
MacbookPro:~ Gavin$ telnet 192.168.84.1 2002
Trying 192.168.84.1...
Connected to 192.168.84.1.
Escape character is '^]'.

For security reasons, a TLS/SSL enabled telnet client MUST be used to connect
Connection closed by foreign host.
MacbookPro:~ Gavin$

The only reason I ask about Raw is that I know on the PuTTY program, all I have to do is select Raw and port 2002 and off it goes.

Aug 4, 2009 5:25 AM in response to gavjones

How odd. From the PuTTY manual - http://the.earth.li/~sgtatham/putty/0.58/htmldoc/Chapter3.html#using-rawprot :
Sometimes it can be useful to connect directly to one of these services and speak the protocol ‘by hand’, by typing protocol commands and watching the responses. On Unix machines, you can do this using the system's telnet command to connect to the right port number. For example, telnet mailserver.example.com 25 might enable you to talk directly to the SMTP service running on a mail server.
Although the Unix telnet program provides this functionality, the protocol being used is not really Telnet. Really there is no actual protocol at all; the bytes sent down the connection are exactly the ones you type, and the bytes shown on the screen are exactly the ones sent by the server. Unix telnet will attempt to detect or guess whether the service it is talking to is a real Telnet service or not; PuTTY prefers to be told for certain.

What kind of device are you connecting to? I assume by "TLS/SSL enabled telnet client" they don't mean SSH, so what then? stunnel + telnet?

Aug 4, 2009 10:32 AM in response to SillyWilly

SSL & TLS can be used to encrypt any type of TCP communication provided you have a client that supports it. To my knowledge, the telnet client for Mac OS X does not support either method. PuTTY does. You might try SSL Enabler which uses stunnel to create encrypted sessions.

Interesting that the port in use here is 2002. Dangerous port to have open.

Terminal or PuTTY for Mac

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.