LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-22-2003, 10:14 AM   #1
RKris
Member
 
Registered: May 2002
Location: UK
Distribution: Mandriva linux
Posts: 152

Rep: Reputation: 15
Question User restriction on SSH


Hi,

I want to allow only one user to use SSH on the server.
How should I do this?

regards
Krishna
 
Old 06-22-2003, 10:23 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Do you mean use the ssh client or ssh to the server.
 
Old 06-22-2003, 10:26 AM   #3
RKris
Member
 
Registered: May 2002
Location: UK
Distribution: Mandriva linux
Posts: 152

Original Poster
Rep: Reputation: 15
hi,

I am trying to configure ssh on the server (RedHat Linux 8)

regards
Krishna
 
Old 06-22-2003, 10:31 AM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Edit:
/etc/ssh/sshd_config

Add a line with:
AllowUsers USER1 USER2 USER3

Replace "USER1 USER2 USER3" with a list of users who are allowed to login. If a user not in that list tries to login they will be rejected.
 
Old 06-22-2003, 10:31 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
one user as it one connection or only one person allowed to ever login? i.e. you....
 
Old 06-22-2003, 12:38 PM   #6
RKris
Member
 
Registered: May 2002
Location: UK
Distribution: Mandriva linux
Posts: 152

Original Poster
Rep: Reputation: 15
Hi David,

Thanks!!

regards
Krishna
 
  


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
user based bandwidth restriction through squid jaychoksi2003 Linux - Security 3 10-23-2005 06:10 AM
User account restriction br.man Linux - Newbie 2 04-21-2005 11:58 PM
ssh login - host restriction DoubleOTeC Linux - Networking 12 09-27-2004 09:18 AM
Restriction on user logins klmn1 Linux - Networking 2 05-26-2003 06:40 AM
Squid user restriction andresurzagasti Linux - Networking 1 02-01-2003 09:56 AM


All times are GMT -5. The time now is 08:13 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration