当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 3 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : SSH服务如何限制登录的用户使用某些功能?
帖子发表于 : 2016-03-16 0:28 

注册: 2016-02-06 21:54
帖子: 25
系统: Windows 7
送出感谢: 0 次
接收感谢: 0 次
对于user用户,登录SSH后不可使用端口转发,而且只能访问/bin/reshell这个Shell程序,不可以运行其他程序。
对于netadmin用户,登录SSH后不可以使用某些命令(Bash Shell)。


页首
 用户资料  
 
2 楼 
 文章标题 : Re: SSH服务如何限制登录的用户使用某些功能?
帖子发表于 : 2016-03-16 1:30 

注册: 2007-01-14 16:23
帖子: 4255
送出感谢: 0 次
接收感谢: 107
我记得/etc/passwd里面可以指定用户shell来着?不过貌似是不管什么方式登录,都是那个shell


_________________
#include <stdio.h>
void main()
{
double world;
unsigned letter;
short stay;
long memories;
printf("I miss you.\n");
}


页首
 用户资料  
 
3 楼 
 文章标题 : Re: SSH服务如何限制登录的用户使用某些功能?
帖子发表于 : 2016-03-16 9:01 

注册: 2009-08-04 16:33
帖子: 16893
送出感谢: 21
接收感谢: 1827
參閱

1. http://askubuntu.com/questions/48129/ho ... forwarding
How to create a restricted SSH user for port forwarding?
The new user must not be able to:
execute shell commands
access files or upload files to the server
use the server as proxy (e.g. webproxy)
access local services which were otherwise not publicly accessible due to a firewall
kill the server

2. http://cybermashup.com/2013/05/14/restr ... e-command/
Restrict SSH logins to a single command


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 3 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 3 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译