Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Would like to restrict ssh access to specific users

 
   Soft32 Home -> Linux2 Arch -> Security RSS
Next:  Process-centric monitor tool  
Author Message
Ramon F Herrera

External


Since: Apr 18, 2007
Posts: 15



(Msg. 1) Posted: Sun May 27, 2007 2:22 pm
Post subject: Would like to restrict ssh access to specific users
Archived from groups: comp>os>linux>security, others (more info?)

Other than hacking the source code, is there any way to restrict
access through ssh to some specified user (for instance, moi)?

TIA,

-Ramon
Back to top
Login to vote
Dan C

External


Since: Dec 25, 2006
Posts: 36



(Msg. 2) Posted: Sun May 27, 2007 5:14 pm
Post subject: Re: Would like to restrict ssh access to specific users [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Sun, 27 May 2007 19:22:31 -0700, Ramon F Herrera wrote:

> Other than hacking the source code, is there any way to restrict
> access through ssh to some specified user (for instance, moi)?

man sshd

Do something to help yourself, Win-droid.

--
"Ubuntu" -- an African word, meaning "Slackware is too hard for me".
Back to top
Login to vote
Randy Yates

External


Since: Jul 21, 2007
Posts: 28



(Msg. 3) Posted: Sun May 27, 2007 5:25 pm
Post subject: Re: Would like to restrict ssh access to specific users [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Ramon F Herrera <ramon DeleteThis @conexus.net> writes:

> Other than hacking the source code, is there any way to restrict
> access through ssh to some specified user (for instance, moi)?

Yes, via the AllowUsers option in the /etc/ssh/sshd_config file.
--
% Randy Yates % "She's sweet on Wagner-I think she'd die for Beethoven.
%% Fuquay-Varina, NC % She love the way Puccini lays down a tune, and
%%% 919-577-9882 % Verdi's always creepin' from her room."
%%%% <yates DeleteThis @ieee.org> % "Rockaria", *A New World Record*, ELO
http://home.earthlink.net/~yatescr
Back to top
Login to vote
CBFalconer

External


Since: May 12, 2007
Posts: 178



(Msg. 4) Posted: Sun May 27, 2007 5:34 pm
Post subject: Re: Would like to restrict ssh access to specific users [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Ramon F Herrera wrote:
>
> Other than hacking the source code, is there any way to restrict
> access through ssh to some specified user (for instance, moi)?

group access?

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
<http://kadaitcha.cx/vista/dogsbreakfast/index.html>
cbfalconer at maineline dot net



--
Posted via a free Usenet account from http://www.teranews.com
Back to top
Login to vote
Hadron

External


Since: Apr 13, 2007
Posts: 42



(Msg. 5) Posted: Mon May 28, 2007 2:39 pm
Post subject: Re: Would like to restrict ssh access to specific users [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Ramon F Herrera <ramon DeleteThis @conexus.net> writes:

> Other than hacking the source code, is there any way to restrict
> access through ssh to some specified user (for instance, moi)?
>
> TIA,
>
> -Ramon
>

Read the first hit from google for

"ssh restrict users"

http://aplawrence.com/SCOFAQ/FAQ_scotec4sshdusers.html


--
Back to top
Login to vote
mike

External


Since: Jul 06, 2007
Posts: 5



(Msg. 6) Posted: Fri Jul 06, 2007 11:30 am
Post subject: Re: Would like to restrict ssh access to specific users [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On May 27, 7:22 pm, Ramon F Herrera <r... RemoveThis @conexus.net> wrote:
> Other than hacking the source code, is there any way to restrict
> access through ssh to some specified user (for instance, moi)?
>
> TIA,
>
> -Ramon

Set the shell in the /etc/passwd file to be /bin/false
FTP login should still work but you should verify.

mike RemoveThis @surgeontech.com
Back to top
Login to vote
Mike Anonymous Coward

External


Since: Nov 09, 2006
Posts: 8



(Msg. 7) Posted: Sat Jul 07, 2007 2:54 pm
Post subject: Re: Would like to restrict ssh access to specific users [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Fri, 06 Jul 2007 16:30:09 -0700, "mike wrote:

> On May 27, 7:22 pm, Ramon F Herrera <r....RemoveThis@conexus.net> wrote:
>> Other than hacking the source code, is there any way to restrict
>> access through ssh to some specified user (for instance, moi)?
>>
>> TIA,
>>
>> -Ramon
>
> Set the shell in the /etc/passwd file to be /bin/false
> FTP login should still work but you should verify.
>
> mike.RemoveThis@surgeontech.com


Or you could just allow selected users...

SSHD_CONFIG(5) BSD File Formats Manual SSHD_CONFIG(5)

NAME
sshd_config - OpenSSH SSH daemon configuration file

SYNOPSIS
/etc/ssh/sshd_config

DESCRIPTION
[...]
AllowUsers
This keyword can be followed by a list of user name patterns, separated by
spaces. If specified, login is allowed only for user 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.
Back to top
Login to vote
Display posts from previous:   
Related Topics:
restrict a tcp port to only a specific program - How to restrict a tcp port to only a specific program (i.e. other program are not allowed access)? e.g. restrict the tc...

restrict user account for remote access - Hi, I want to set up a new linux account to use it for remote access with the VNC (virtual network client). This..

cannot access the one specific site evenafter disabling th.. - Hello everone.. I have a critical problem. I am using squid as proxy in redhat linux 9. one of my users want to access...

vsftpd: Restrict FTP access to certain ip addresses per FT.. - Hello, I have implemented a public ftp server using vsftpd-1.1.3-8 on Redhat Linux 9. I configured it to use chrooot..

Prevent some of the domain users to access Samba Server - Hello, I have a Linux server running Samba. My Samba was configured as: security = server password server =..

restrict su - Does anyone know how to restrict su to root to users logged into system from specified IP? Regards, swift
       Soft32 Home -> Linux2 Arch -> Security All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
 Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]