Birk Richter <[EMAIL PROTECTED]> writes:

>I want to allow access via ssh only for interactive sessions like
>telnet/rlogin.
>
>How can I configure the sshd for forbidding execute commands or
>allowing only interactive sessions ?
>I dont't find any arguments or switches for the sshd for this problem. 

Disable telnet, rlogin, rcp, etc ... in /etc/inetd.conf (or whatever file
your inetd documentation says it uses).  You can have the user accounts
start up a restricted shell (assuming your OS supports that) it you want 
to limit the kinds of commands those connections use.

If your OS supports IP filtering you can disallow rlogin & such from 
external connections and still allow them on your LAN (once connected
via SSH from the outside) if you want.

If you need help to do all of those things, you need to get on a mialing
list or into a news group that is directed at the OS you are running.

Good luck,
Paul

Reply via email to