Re: different ssh settings for different users
- From: Ben Stringer <ben@xxxxxxxxxxx>
- Date: Wed, 31 May 2006 17:34:39 +1000
On Wed, 2006-05-31 at 11:54 +0530, Ankush Grover wrote:
hey friends,
I am using openssh-3.9 on FC3.Is it possible to have different ssh
settings for each user means if there is a user john and he can only
connect through the port 3309 and if there is a user mary she can
only connect through the port 4067 ?
Rest of the users should be able to connect through the default port
that is 5009.
Hi Ankush,
I believe you can do this by running a different sshd for each unique
port (using ListenAddress, Port) that you wish to allow ssh connections
to, then use the "AllowUsers" configuration property for each respective
sshd to limit the logins on each port to given users. You will need to
modify or duplicate the sshd service script to cater for this, and have
multiple sshd_config files, one for each unique port.
Moreover is it possible to restrict some users to login only from few
machines for example I want to restrict user tom that he can only
login from one machine ?
Have a look at /etc/hosts.allow and /etc/hosts.deny for this one. Use of
these files will affect all connections, not just those via ssh.
Cheers, Ben
Please let me know if you need any further inputs.
Thanks & Regards
Ankush Grover
--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
- Follow-Ups:
- Re: different ssh settings for different users
- From: Ankush Grover
- Re: different ssh settings for different users
- References:
- different ssh settings for different users
- From: Ankush Grover
- different ssh settings for different users
- Prev by Date: Re: fc4 and dovecot
- Next by Date: Re: yumex repeatedly upgrading openoffice.org-core-2.0.2-5.11.2 and accompanying files
- Previous by thread: different ssh settings for different users
- Next by thread: Re: different ssh settings for different users
- Index(es):
Relevant Pages
- RE: possible ssh hack
... What version of SSHD were you running, ... Apache and we can help you
out. ... Subject: possible ssh hack ... port 4207 ... (Incidents) - Re: Security basics
... login password which was my last name. ... run ssh on some port
other than 22. ... can detect ssh implementations since they normally self-identify. ...
(Fedora) - Re: Security basics
... login password which was my last name. ... run ssh on some port
other than 22. ... can detect ssh implementations since they normally self-identify. ...
(Fedora) - [NEWS] SSH service at Dell DRAC4 Denial of Service (Mocana)
... SSH service at Dell DRAC4 Denial of Service ... Dell Remote Access Card
4 allows customers to effectively manage ... After the use of such a port scanner, ...
(Securiteam) - Re: Block ssh login prompt for *.kr *.jp etc.
... >to be PROMPTED for a login. ... You probably want your whole machine to
be invisible, not just the SSH ... Block as much as you can at the router. ...
Consider running SSH on a non-standard port. ... (comp.security.ssh)