LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-09-2005, 02:23 AM   #1
mlu
Member
 
Registered: Nov 2004
Location: colombo
Distribution: Fedora
Posts: 74

Rep: Reputation: 15
ssh resrictions help!!!


I'm running fedora core 3. i have two pcs.
PC1 name-"srv1"
PC2 name-"srv2"

on "srv1" i have three users "u1", "u2", "u3" -- from "srv2" i want to ssh to "srv1" as "u1" and "u2" but not as "u3". How can i do it ? pls help!!!
 
Old 02-09-2005, 02:52 AM   #2
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Rep: Reputation: 33
ssh srv1 -l u1
ssh srv1 -l u2

That is if "srv1" is the HOSTNAME of that computer and u1 is the actual name of the user you want to log on to that computer. If not, it would look something like this...

ssh 192.168.0.? -l nameofusrurlogginas
 
Old 02-09-2005, 03:50 AM   #3
mlu
Member
 
Registered: Nov 2004
Location: colombo
Distribution: Fedora
Posts: 74

Original Poster
Rep: Reputation: 15
Thanks But how can i restrict "u3" form sshing to "srv1"
cant i configure any fie or firewall in "srv1" to give message like "permission deny" to "u3" but not to "u1" & "u2"
 
Old 02-09-2005, 04:10 AM   #4
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Rep: Reputation: 33
Oh, in your /etc/ssh/sshd_config you can put somthing like..

DenyUsers u3@serv1:22
 
  


Reply



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-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 02:50 AM
[SSH] Issue logging in [SSH & Permissions] MD3 Linux - Networking 11 12-10-2006 09:25 AM
Mac OS X ssh client / linux sshd : ssh hangs/disconnects Apollo77 Linux - Networking 1 05-24-2006 11:53 AM
I turned off SSH, but I cant get it back! How do you start SSH on boot? nmoog Slackware 2 02-08-2004 05:18 PM
ssh issue: /usr/bin/ssh -x -oFallBackToRsh no -l WeNdeL Linux - Software 1 03-04-2003 07:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:18 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