Jump to content

limit access in SSH?


Guest quakey
 Share

Recommended Posts

Guest quakey

Hi,

 

I am pretty new to this...basically I just found out that I could SSH into my own linux box with any account login and password and once I am in, I can go anywhere I want, just like I am acutally using the copmuter physically.

 

However, I would like to limit the access. The main reason is that I created some account for my friends so they can make some web pages (I also run Apache). They could FTP or SSH into my machine. I figured out how to limit their access in FTP. But in SSH, they could go anywhere they want. I want them to only be able to access their respective home directory. How do I do that???

 

Thank you.[/i]

Link to comment
Share on other sites

When your friends SSH into your box, they only have the same privileges as they would while sitting at the box.

 

Their user account is the same account used for SSH, so any limits plaed on a user will be the same whether he is sitting in front of the box or SSHing into it.

Link to comment
Share on other sites

Hi,

 

I am pretty new to this...basically I just found out that I could SSH into my own linux box with any account login and password and once I am in, I can go anywhere I want, just like I am acutally using the copmuter physically.

 

However, I would like to limit the access. The main reason is that I created some account for my friends so they can make some web pages (I also run Apache). They could FTP or SSH into my machine. I figured out how to limit their access in FTP. But in SSH, they could go anywhere they want. I want them to only be able to access their respective home directory. How do I do that???

 

Thank you.[/i]

 

One thing you can do to force them to stick to the user accounts and keep them from logging in as ROOT, is to edit this line in your /etc/ssh/sshd_config file;

 

PermitRootLogin no (Change this from yes to no or remove the # in front if it is commented out)

 

 

Cheers

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...