logging in with tunnels but no shell

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi there

I'm writing a distributed application at the moment that uses SSH as
its method of transferring data from computer to computer. I want to
create a private key that remote computers can use to log in to the
central server. But I don't want these keys to provide access to a
shell prompt. I want to provide a tunnel to MySQL, a tunnel to a
webserver, and perhaps SCP. Can I specify those things as part of the
authorized_keys section?

If there's a place in the manual or a keyword that I need to be
searching for to find this info perhaps you could just tell me that.


John Pye

Re: logging in with tunnels but no shell

john@curioussymbols.com (jdpipe) writes:

Quoted text here. Click to load it

You can specify
there, but I don't know of a way to specify a restriction on tunnels.

(If you decide to support scp, you'll want to allow a more exotic
program than "cat."  Those have been discussed here already.)


Site Timeline