using Weekend project (squeak teletype) through a firewall

Mike Rutenberg mdrs at akasta.com
Thu Jul 18 08:39:30 UTC 2002


If you have SSH installed (which is part of Cygwin), then you can use it
to tunnel a connection through the firewall from the squeak terminal to
the remote host.  It is a touch obscure, but it worked fine on the
firewall I was resticted by.  It also has the added benefit of
encrypting your password and session.

ssh -2 -N -L23:localhost:23 username at squeak.org

You then connect simply to "localhost" from the squeak session, and you
will be greeted by a login prompt for the remote host.  The only problem
is that you have to give your password twice, once for ssh and once for
the squeak terminal login (there may be a way around this).

Mike


_________
Date: Wed, 10 Jul 2002 23:24:36 +0200
From: "Andreas Raab" <Andreas.Raab at gmx.de>
Subject: RE: Weekend Project Update [was: log me in!]
To: <squeak-dev at lists.squeakfoundation.org>
reply-to: squeak-dev at lists.squeakfoundation.org

Yayy, Ian! Glad you tried it Brent - I couldn't get through the firewall
for trying it personally :-( Need SSL first :-)

Cheers,
  - Andreas

> -----Original Message-----
> From: squeak-dev-admin at lists.squeakfoundation.org 
> [mailto:squeak-dev-admin at lists.squeakfoundation.org] On 
> Behalf Of Brent Vukmer
> Sent: Wednesday, July 10, 2002 11:14 PM
> To: squeak-dev at lists.squeakfoundation.org
> Subject: RE: Weekend Project Update [was: log me in!]
> 
> 
> I filed in the changeset to a 3.2gamma5 image running on 
> Windows 2000, with the 3.2.2 VM. I did 'TeletypeWindow open' 
> and tried to connect to a local Linux box running telnetd.  
> I'm in!  Sweet doggie!
> 
> -----Original Message-----
> From: Stephen Pair [mailto:spair at advantive.com]
> Sent: Tuesday, July 09, 2002 9:28 AM
> To: squeak-dev at lists.squeakfoundation.org
> Subject: RE: Weekend Project Update [was: log me in!]
> 
> 
> Ian, this is great stuff!
> 
> I vote that this be put into the main image.  We have a web browser,
> email client, and IRC client in the main image now...I'd argue that a
> telnet client (and terminal emulation) is quite a bit more useful to
> more people than an IRC client (not suggesting that IRC be removed).
> 
> - Stephen
> 
> > -----Original Message-----
> > From: squeak-dev-admin at lists.squeakfoundation.org 
> > [mailto:squeak-dev-admin at lists.squeakfoundation.org] On 
> > Behalf Of Ian Piumarta
> > Sent: Tuesday, July 09, 2002 4:24 AM
> > To: squeak-dev at lists.squeakfoundation.org
> > Subject: Weekend Project Update [was: log me in!]
> > 
> > 
> > On Mon, 8 Jul 2002, Felix Franz wrote:
> > 
> > > working. I tried your 'telnet.cs': wow! Works like a charm
> > 
> > You're making me blush.  ;)
> > 
> > > > Anyone know if Felix is still maintaining his emulator?
> > > 
> > > no, I don't.
> > 
> > In which case I hope you don't mind too much that I spent 
> > another weekend hacking on telnet and terminals...
> > 
> > For anyone who might find it useful, there's a new version here:
> > 
>   http://www-sor.inria.fr/~piumarta/squeak/goodies.html
> 
> and a new screenshot to go with it:
> 
  http://www-sor.inria.fr/~piumarta/squeak/devel/telnet2.gif

The telnet stuff should now work on Mac and Windows too (assuming they
implement Socket>>setOption:value: correctly) but please let me know if
you try it on these platforms, since I haven't.

I tweaked performance in TtyMorph a little: it now runs at 20% the speed
of the real xterm.  It also comes with its own font now, infinitely
nicer than Atlanta.

Oh yes, I also added support for "connecting" to a pseudo tty.  IOW, it
now supports talking to a local interactive shell (that thinks it's
connected to a real terminal [which it is, although the terminal is
being emulated entirely in Squeak ;-] and so will work just like any
login shell should: job control, window tcset/getattr work properly [so
Emacs, less and friends will happily run], etc, etc...).

For the shell to work you need AsynchFilePlugin support and the (brand
new) PseudoTTYPlugin.  (It just so happens they're bundled in the new
3.2-3 Unix VMs. ;)

Hope you like it.  Enjoy!

Ian

PS: The PTYPlugin should work with any OS that provides Unix98-compliant
    ptys (I've tested it on GNU and Solaris).  Cygwin has them, but
plain
    Windows almost certainly doesn't.  (MacOS [version 9 and earlier]
    hasn't a rat's chance. ;)

PPS: If there's a real interest in this stuff then I could be persuaded
     to add some pages to a swiki explaining it all.



More information about the Squeak-dev mailing list