forcing ssh-tunnel in authorized_keys

From: Christian Schmidt (forename_dot_surname_at_aifb.uni-karlsruhe.de)
Date: 05/27/03


Date: Tue, 27 May 2003 10:58:56 +0200

Can I force a user, who logs in with ssh and a unique key to open a tunnel to a
specific host on the remote-side (the side where the ssh-server runs)?

What I want to do is, that a user opens a tunnel with ssh and the ssh-server
tells him at which host the tunnel ends. Example: A user is requesting support
using VNC. He connects via a ssh-tunnel and the ssh-server should connect him to
a free supporter

A possibility might be:

user$ ssh -L 5500:localhost:xxxxx user@server

and the server has a portforward from xxxxx to target:5500, which can dynamicly
adapted.

What I would prefer is an entry in the .ssh/authorized_keys file that connects
the user directly to a free supporter.

Thanks for any ideas,

Christian

-- 
-----------------------------------------------------------------
Christian Schmidt
Institut AIFB - Universität Karlsruhe (TH)
D 76128 Karlsruhe
-----------------------------------------------------------------


Relevant Pages

  • Re: SSH Tunneling - security concerns
    ... > don't actually know much about SSH i think. ... You can make a host on one network accept connections on a certain ... they probably use plain telnet to ... firewall, you can configure a tunnel, that will forward connections to port ...
    (comp.security.ssh)
  • Re: SSH, SaMBa, & NFS?
    ... can I pass NFS or SaMBa traffic via an SSH tunnel as ... Maybe I should have included a wonderful ASCII diagram so you can see how everything is laid out as the example you provided I think only allows between the two ssh endpoints. ... Host B has both NFS and Samba loaded and can mount smb filesystems from the smb fileservers today. ... another address range for a loopback, but I've never seen anything other than 127.0.0.1 as a loopback on a unix machine and changing it will surely break something. ...
    (Fedora)
  • Re: X11 tunnel over ssh and then rsh
    ... host B with ssh server but without X server ... (on host C there's also an ssh server, but in our case, users ... A$ ssh -Y B (-Y or -X, to create a X tunnel) ...
    (freebsd-questions)
  • Re: X11 tunnel over ssh and then rsh
    ... host B with ssh server but without X server ... (on host C there's also an ssh server, but in our case, users ... A$ ssh -Y B (-Y or -X, to create a X tunnel) ...
    (freebsd-questions)
  • Re: What is The SSH?
    ... Building and Using SSH Tunnels ... What is an SSH tunnel? ... how to use it to make a connection to a server. ... You will need a working SSH client and server installation to build and test ...
    (microsoft.public.windows.server.networking)