Re: No shell scripts ...
From: Darren (dledmonds@nospam-btopenworld.com)
Date: 02/03/03
- Next message: Cameron Laird: "Re: PermitRootLogin=yes versus su"
- Previous message: Dimitri Maziuk: "Re: logging every sshd messages in a dedicated log-file"
- In reply to: Richard E. Silverman: "Re: No shell scripts ..."
- Next in thread: Richard E. Silverman: "Re: No shell scripts ..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: Darren <dledmonds@nospam-btopenworld.com> Date: Mon, 03 Feb 2003 17:52:25 +0000
No, I don't want to say 'can log in', but perhaps 'can get a shell'
makes more sense. I want behaviour like sourceforge where you get a ssh
login to use with cvs, but if you do,
ssh cvs.sourceforge.net
it acknowloges your attempt then boots you out stating you are not
allowed a shell.
Thanks.
Richard E. Silverman wrote:
>>>>>>"DE" == Darren <dledmonds@nospam-btopenworld.com> writes:
>>>>>
>
> DE> How do I restrcit my ssh connections so that only root (or certain
> DE> users) get a shell script and others get kicked back out. I tried
> DE> creating /etc/nologin but that affects other logins as well as ssh
> DE> !
>
> What you want to say here is "can log in" instead of "get a shell script;"
> that phrase is meaningless.
>
> You did not say what version of SSH you're using. However, they all have
> this capability and it's documented. For OpenSSH, for instance:
>
> % man sshd_config
> ...
> AllowUsers
> This keyword can be followed by a list of user name patterns,
> separated by spaces. If specified, login is allowed only for
> users names that match one of the patterns. `*' and `'? can be
> used as wildcards in the patterns. Only user names are valid; a
> numerical user ID is not recognized. By default, login is
> allowed for all users. If the pattern takes the form USER@HOST
> then USER and HOST are separately checked, restricting logins to
> particular users from particular hosts.
> ...
>
> --
> Richard Silverman
> slade@shore.net
- Next message: Cameron Laird: "Re: PermitRootLogin=yes versus su"
- Previous message: Dimitri Maziuk: "Re: logging every sshd messages in a dedicated log-file"
- In reply to: Richard E. Silverman: "Re: No shell scripts ..."
- Next in thread: Richard E. Silverman: "Re: No shell scripts ..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|