Telnet via SSH2 or telnet tunneling or something. HALP!

by Enero

Back to The Real World.

Enero2008-12-12 07:13:02
Hi!

So... yeah. I work in a big bad building with mean IT squad, yadda, yadda... The only difference between this place and, say, Pentagon, is that we can still USB flash-drives.

Having said that, I get down to the problem. The mission is to get through to lusternia, one way or the other.
Telnet itself is locked shut, which, as far as I understand, means I can't use a java (don't have it anyway) client or a flash client either.

However, I think port 22 should be open, which in theory would mean that I could get out to a shell and run telnet from there. Now I'm no genious but as far as I understand it shouldn't be impossible as long as I have a client that supports ssh (methinks cMUD Pro did that, but I don't have the Pro one, not sure about MUSH, but in the worst case I could even use PuTTy).

Anyone has any input/suggestions on this method? Also, unless I will find a good soul who could give me a shell account somewhere, what are my chances on setting up something of that sort at home?
Maybe there are some other alternatives?

Thanks!
Unknown2008-12-12 13:12:19
QUOTE (Enero @ Dec 12 2008, 02:13 AM) <{POST_SNAPBACK}>
I think port 22 should be open.

Did you try port 2003? Lusternia has it available as an alternative for those who can't use the usual telnet port 23. I'm guessing IT locked down pretty much anything except for two or three ports, but you don't know until you try.

QUOTE (Enero @ Dec 12 2008, 02:13 AM) <{POST_SNAPBACK}>
Also, unless I will find a good soul who could give me a shell account somewhere, what are my chances on setting up something of that sort at home?


It's pretty simple these days to setup a Linux server with an SSH daemon. You'd have to run a client like TF, however, unless you want to go about setting up a proper tunnel through your Linux server.


CMUD Pro supports SSH, but that makes it an SSH client, not a tunnel for a telnet connection. Same with the others.
Enero2008-12-12 13:39:09
Thanks, Zarquan!

2003 is also locked, tried that even before I started looking for other alternatives. I think almost everything is locked down, which just made me wonder, maybe it's a case where everything else is being ignored by proxy save for requests to HTTP port. That would pretty much be the worst of scenarios.

For now, while everything looks sunny, I think I will try to do the following.
Set up Cygnwin on my home computer and use PuTTy from work to get through. I think I'll actually try to make a HTTP tunnel instead of simple SSH. This would effectively hide all SSH traffic which could make them admins wonder what is going on here smile.gif

If I'm getting it right a HTTP tunnel should also enable me to use the new flash client from browser, given that I change the default company proxy to localhost and use something like httptunnel (I think that was the software). Main concer at the moment is to get everything working on this end without needing apps that actually require installation privs (which I naturally don't have).

How does this plan sounds? Possible or not?
Unknown2008-12-12 14:09:57
It's possible to setup, but it may run pretty slow compared to a usual direct connection. Going through HTTP will at least cut out the encryption that an SSH tunnel requires. Setup your home computer with a proxy to forward your traffic from the HTTP port 80 through to port 23 of lusternia.com, and that should be that?
Enero2008-12-12 14:52:03
That should be it and hopefully it will work. Will set everything up on my end when I get home from work and will try how it's working tomorrow. Will post how did it go, maybe someone else will find this useful although I must say I'm a bit nervous about the possible consequences, heh...

I tried to write a longer reply since I got some questions/got confused by your last reply but I decided to try it hands on and see what happens. Will set use my computer as the remote host and my mobile as local host (good people have made putty for symbian, heh).

Thanks!
Enero2008-12-13 08:52:27
So... nothing. Like absolutely nothing...

SSHD is nicely running at home, could connect to shh from both cygwin and PuTTY (both, by using localhost and my IP as host name). Different story from work though...

To start things off, looks like everything is locked. Well, everything but HTTP, HTTPS and FTP all of which go to a local proxy through just one port. Only exceptions are local adresses. So I guess this means that a simple ssh tunneling will not work, even if I undergo a bapist ceremony and pray to the Lord every evening and twice in before each meal...

Having thought that it could be possible I had already a httptunnel service running on my remote host as well. Set it up with hypertunnelNT, configured it to wait for incoming connection to port 80 (sort of even made sure no other soft is waiting for 80. By the look of things only other app doing that was Skype which used 80 and 443 as alternative ports) and to send them to 22 when a connection is made. Now, while all this looked promising and I thought I'll be having a laugh, running telnet from my shell and getting Lusty goodness... yeah, you guess right, big fat nothing.

Started the client on localhost with HTC -P PROXY_SRV:PROXY_PORT -A USERNAME:PASSWD -F 10022 MY_IP:80 and tried telnetting to localhost 10022. No response, telnet just freezes on open. I check netstat and it tells me that we're listening to 10022, I check task manager and htc is running fine. Same story with PuTTY, nothing happens, I try making an ssh connection to localhost:10022 and nothing happens, no error message, no nothing.

Any guesses? I don't want to believe there isn't a way out. The httptunnel should've worked, unless I did something wrong...