Re: PLINK and/or PuTTY -- Logon to Linux with no Privileges



Nico Kadel-Garcia wrote:


"Hal Vaughan" <hal@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:ftSdnSyGnf_rF4LZnZ2dnUVZ_s6dnZ2d@xxxxxxxxxxxxxx
I need a forwarding application that people I'm working with can run from
behind restrictive firewalls so VNC can be tunneled through it.  I
figured it would be possible to use putty or plink on port 443 so it
would look like HTTPS to a firewall (is that right -- will the firewall
think encrypted data from putty/plink is the same as HTTPS?).

There are firewalls that can detect this sort of thing, but not many that
bother with that sort of smarts.

Now that I'm thinking about it -- and I don't know much about this -- I
would think one type of encrypted data would look like any other.  We've
tried just regular VNC, with no luck, then tried it on port 80, with no
luck.  My best guess is that it's not only filtering based on ports, but on
the type of data or packets.  If so, from what I understand, encrypted data
on port 443 will seem close enough to HTTPS that it should go through.
That makes me wonder, though, if I could just run VNC normally on port 443
and it would likely go through.  Is that likely?  My guess on this is that
it's hard to check encrypted data so not much checking would be done on
that port anyway.  Is that at all close to fact or is there any basis for
that idea?

The biggest problem I see is that I'll have several different people
using putty or plink to log into my system and there is no need for them
to
actually have access to anything (other than the ability to log out).
All I need is the port forwarding.

Hmm. Does your network staff know you're doing this sort of stunt? Perhaps
you can convince them to open up the standard VNC ports for you instead of
trying to work around them, rather than having to sneak behind their backs
and maybe cause them to get really cranky at you if they find you're
drilling holes past their firewalls without their knowledge? Your desire
is reasonable: I hope your network staff is reasonable and can help you
get it done.

Actually, I'm dealing with admin people who have authority over IT people
and basically would prefer me do this than change the firewall.  In one
case there's a Cisco router handling it and a history of having trouble
finding anyone who knows IOS to program it, so the feeling is, "The
firewall's working.  Nobody's touching it.  If you can find a way to work
with it, great."

It's possible to set up SSH in a chroot cage for more thorough
restriction, or to use a sort-of-restrictive shell for the users. Check
out the projects
on sourceforge like http://sourceforge.net/projects/chrootssh.  But I
highly recommend Richard Silverman's book on SSH for this sort of detailed
question. He spends time on this newsgroup, and it's well worth the price
of the book for the depth and breadth of its information.

I never knew any of that was possible.  Do you have Silverman's book title?
I'm searching the local bookstores for it, in hopes I can get a copy today.
I've been working on this for a few weeks and I really need to get it
resolved before more work piles up.  I've found one he co-authored, "SSH,
the Secure Shell: The Definitive Guide".  Is that it?

I'm running Linux.  Is there a way to set up a restricted login (even if
I have to kill it with a kill command instead of them logging out) for
putty
or plink?  Or is there a way to set up an account for others to log in to
that has no rights except the ability to log out?

Not..... trivially. It's theoretically possible, for example, to set up a
restricted login binary to do just this, but a lot of "restricted shells"
have just been badly written shell scripts that were easily broken out of
because, well, they're shell scripts! And it can get complex if you are
using a universal authentication method like LDAP to manage accounts,
since the information about their login from LDAP?à6 conflict with the
setup you want to have them restricted to.

So what kind of search terms are best on this?  Restricted shell?
Restricted login?  I can understand why a script would be bad.  I figured
this either had to be done by some special shell or something special with
permissions and the group the user is in, but this is not an area I know
much about.  I do know enough to know that what you don't know in security
can nail you, which is why I'm asking all of this.

Thanks for the answers and help.

Hal
.



Relevant Pages

  • Re: PLINK and/or PuTTY -- Logon to Linux with no Privileges
    ... There are firewalls that can detect this sort of thing, ... We've tried just regular VNC, with no luck, then tried it on port 80, ... were easily broken out of because, well, they're shell scripts! ...
    (comp.security.ssh)
  • Re: VNC over SSH and SOCKS
    ... seems to fail all the time, in the same way, no matter what port numbers x ... I was of course getting a shell on B, ... the VNC connection will never succeed. ...
    (comp.security.ssh)
  • How did they get past my NAT?
    ... kicked in on my VNC server - my desktop background image disappeared ... this point I panicked and shutdown the VNC service ASAP. ... My question is how the attacker got to my VNC port! ... the internet through the router. ...
    (comp.security.firewalls)
  • Re: VNC behind ISA Server
    ... On what ports VNC uses, please read the following information from VPN ... A VNC server listens on two ports. ... The exact port numbers depend on the VNC ... Microsoft can make no representation concerning ...
    (microsoft.public.windows.server.sbs)
  • ANNOUNCE: DJGPP port of GNU Make 3.81 uploaded
    ... This is a port of GNU Make 3.81 to MSDOS/DJGPP. ... The are two kind of required djgpp specific changes to the sources: ... of the SHELL Makefile variable is no longer exported automatically. ...
    (comp.os.msdos.djgpp)