LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-25-2003, 06:23 PM   #1
robmainella
Member
 
Registered: Aug 2003
Posts: 30

Rep: Reputation: 15
logging onto SSH


How can i restrict certain users from logging onto SSH. I tried to create a userlist like with vsFTP but that does not work. Any suggestions

Rob
 
Old 08-25-2003, 06:35 PM   #2
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 50
set there shell to /bin/false wont let them log into many other things though
 
Old 08-25-2003, 06:38 PM   #3
EnigmaX
Member
 
Registered: Jul 2003
Distribution: Fedora Core 4
Posts: 107

Rep: Reputation: 15
Not really what you are looking for, but you could set everyone who should have access to SSH into a group, and change the others access to -rwx (except on files like su)
 
Old 08-25-2003, 07:40 PM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,785
Blog Entries: 1

Rep: Reputation: 413Reputation: 413Reputation: 413Reputation: 413Reputation: 413
Your /etc/ssh/sshd_config has an AllowUsers line that lets you restrict ssh access to the users named on that line. Check out man sshd_config for the fine details.
 
Old 08-26-2003, 10:17 AM   #5
Miyamoto
Member
 
Registered: Jun 2003
Distribution: Mandrake Linux 9.1 Bamboo
Posts: 51

Rep: Reputation: 15
I posted something similar to this in the Mandrake forum. You can find it here.
 
Old 08-26-2003, 02:21 PM   #6
jdruin
Member
 
Registered: Jul 2003
Location: Louisville aka Derby City
Distribution: WinXP SP2 and SP3, W2K Server, Ubuntu
Posts: 313

Rep: Reputation: 30
"The option AllowUsers specifies which users can access ssh services. Multiple users can be specified, separated by spaces. "

from "COnfigure the SSH file" at
http://pierre.mit.edu/compfac/linux/...p15sec122.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh command logging jcookeman Linux - Security 3 08-26-2008 02:50 AM
[SSH] Issue logging in [SSH & Permissions] MD3 Linux - Networking 11 12-10-2006 09:25 AM
SSH - Logging out r4merlin Linux - Networking 1 11-02-2003 12:50 PM
SSH problems logging in ra_adi Linux - Networking 3 10-22-2003 12:55 PM
Chrooting somebody logging into SSH... Grim Reaper Linux - Security 23 12-15-2002 11:24 AM


All times are GMT -5. The time now is 02:07 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration