nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

ssh

This is a discussion on ssh within the Linux software forums, part of the Linux Getting Started category; I want to setup a gateway ssh server, using Linux, so that people can login to internal servers thru the ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 01-10-2006, 04:35 PM
Member
User
 
Join Date: Jul 2005
Posts: 85
Rep Power: 0
ricc
Default ssh

I want to setup a gateway ssh server, using Linux, so that people can login to internal servers thru the gateway.

Only ssh will be allowed in the gateway box by and the user ( whichever I create and allow to login) can only use ssh and passwd command only.

I guess it needs to be done on a user to user basis or may be something in a global config wherein we specify the commands and just keep on adding the users allowed to ssh.

Pls help.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-10-2006, 07:42 PM
tom tom is offline
Contributors
User
 
Join Date: Jun 2005
Location: London, UK
Posts: 213
Rep Power: 4
tom is on a distinguished road
Default

Just add user and you are done or may be i'm not getting what you are trying to say..
Reply With Quote
  #3 (permalink)  
Old 01-11-2006, 11:38 PM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 581
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

You can setup list of users in sshd_config file

Code:
vi /etc/ssh/sshd_config
Code:
AllowUsers ricc rocky  rock
Restart sshd
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
  #4 (permalink)  
Old 01-12-2006, 04:11 PM
Member
User
 
Join Date: Jul 2005
Posts: 85
Rep Power: 0
ricc
Default

I understand Tom.

Normally we dont need to specify any user at all, I think. I believe all the users in /etc/passwd can login and use the system as they do when sitting infront of the system.

What I want is, not to give all users all the permissions. Any user that I give permission to login can only be able to do ssh & just passwd ( only these two command.

I said before, they will just login into the gateway to be able to ssh into the internal machines only and nothing more than that. How do I restrict the users to any particular command and or any particular set of commands.

I know a server that one of my friends has, which allows only this. ssh command for loging in from the gateway to the internal servers and passwd for changing the password of the user from time to time.

In this server it also displays a login message whenever a user logs in into the gateway, saying we can only use xxx,xxx & xxx commands and our IP address is logged.

Thanks for your replies rocky & tom, I hope this time I am clear.

ricc[/quote]
Reply With Quote
  #5 (permalink)  
Old 01-17-2006, 05:43 PM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

ricc,

Have you followed what rocky said? You can use AllowUsers and groups options in sshd config file to limit access. ?
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +5.5. The time now is 06:35 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36