Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Restricting root access in Openssh [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
dem1an
n00b
n00b


Joined: 14 May 2002
Posts: 28

PostPosted: Tue Aug 29, 2006 3:29 am    Post subject: Restricting root access in Openssh [SOLVED] Reply with quote

1. I've looked for quite a while and can't seem to find the answer. How do I keep a user logging in with SSH (using OpenSSH) in his home directory. VSFTP has a setting for keeping users out of root and an access list for allowing certain users access here. I couldn't find the equivalent to this in openssh.

2. Is there any reason I shouldn't assign ftp users to the default ftp group that I found already created in my /etc/group?

3. Which vi editor do you recommend that I emerge?

Thanks!

dem


Last edited by dem1an on Fri Sep 01, 2006 6:26 am; edited 1 time in total
Back to top
View user's profile Send private message
celestialwizard
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jun 2006
Posts: 81
Location: Brisbane, Australia

PostPosted: Tue Aug 29, 2006 4:15 am    Post subject: Reply with quote

there are plenty of documents on the net detailing how to setup a SSH Chroot Jail.

Also look at setting the user's shell to rbash which is a restricted version of bash (just a symlink) that enables some extra security features.
_________________
I may be a hardware bigot, but my stuff works
Back to top
View user's profile Send private message
Mad Merlin
Veteran
Veteran


Joined: 09 May 2005
Posts: 1155

PostPosted: Tue Aug 29, 2006 4:19 am    Post subject: Reply with quote

1. You can't do that through SSH itself, once they log in they have a regular shell, if you want to lock them into ~, you'll have look into other methods, you could perhaps set their shell to rbash rather than bash, which restricts a lot of things.

2. Not that I'm aware of.

3. Vim.
_________________
Game! - Where the stick is mightier than the sword!
Back to top
View user's profile Send private message
dem1an
n00b
n00b


Joined: 14 May 2002
Posts: 28

PostPosted: Fri Sep 01, 2006 6:26 am    Post subject: Reply with quote

Thanks! I ended up using just sftp and bailed on limiting ssh access:
[url]
http://gentoo-wiki.com/HOWTO_SFTP_Server_(chrooted%2C_without_shell)
[/url]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum