LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 09-19-2008, 10:55 PM   #1
backroger
Member
 
Registered: Dec 2004
Posts: 81

Rep: Reputation: 15
Question Restrict login thru ssh?


Hi Sir...

Is it possible to restrict loggin to ssh using his account & IP address on a remote?

Example 1: Access Granted for Megan remote console.

Ip address = 192.168.1.84 = true
ssh user = megan = true

Example 2: Access Denied for Megan remote console.

IP Address = 192.168.1.84 = true
ssh user = bill = false

Example 3: Access Denied for Bill remote console.

IP Address = 192.168.1.55 = false
ssh user = bill = true

Example 4: Access Denied for Bill remote console.

IP Address = 192.168.1.60 = true
ssh user = megan = false

Example 5: Access Granted for Bill remote console.

Ip address = 192.168.1.60 = true
ssh user = bill = true

Means ssh user is bind with the ip address?

Thanks in advance.

Last edited by backroger; 09-19-2008 at 10:57 PM.
 
Old 09-19-2008, 11:19 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Look at AllowUsers in man sshd_config.

eg

AllowUsers *@192.168.1.* user1@* user2@192.168.2.1
 
Old 09-23-2008, 01:15 AM   #3
backroger
Member
 
Registered: Dec 2004
Posts: 81

Original Poster
Rep: Reputation: 15
Thanks I will try this out...
 
  


Reply

Tags
ssh



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
restrict ssh login ust Linux - Software 3 09-17-2008 11:20 AM
Restrict login by login from single IP cachemonet Linux - Security 1 01-27-2006 10:47 AM
restrict/allow ssh users mike30188 Linux - Security 2 06-20-2005 08:37 PM
Restrict ssh/sftp with chroot? Chowroc Linux - Networking 4 01-25-2005 10:48 AM
What is the best way to restrict ssh access for RH7 360 Linux - Security 1 12-01-2001 06:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:02 AM.

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
Open Source Consulting | Domain Registration