免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1901 | 回复: 1
打印 上一主题 下一主题

[FTP] sshd的配置subsystem的含义 [复制链接]

论坛徽章:
6
程序设计版块每日发帖之星
日期:2016-04-05 06:20:00每日论坛发贴之星
日期:2016-04-05 06:20:00IT运维版块每日发帖之星
日期:2016-04-12 06:20:00IT运维版块每日发帖之星
日期:2016-04-14 06:20:00IT运维版块每日发帖之星
日期:2016-04-26 06:20:00IT运维版块每日发帖之星
日期:2016-04-27 06:20:00
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2016-04-06 11:49 |只看该作者 |倒序浏览
# vi /etc/ssh/sshd_config
#comment out the below line and add a line like below
#Subsystem sftp /usr/libexec/openssh/sftp-server
Subsystem sftp internal-sftp

求问为什么这里要这么配置呢

这两个有什么区别

论坛徽章:
0
2 [报告]
发表于 2016-04-08 16:26 |只看该作者
自己使用是没什么区别的,如果给不同的用户使用,而且限制他们只能使用sftp功能而不能进行ssh登录,这两个设置还是有些区别的
sftp-server使用需要添加系统用户,此时的用户既能sftp也能ssh。
internal-sftp可以使用chroot将用户限制在指定的用户目录,而不能访问其它目录。

Configures an external subsystem (e.g. file transfer daemon). Arguments should be a subsystem name and a command (with optional arguments) to execute upon subsystem request.
The command sftp-server( implements the “sftp” file transfer subsystem.
Alternately the name “internal-sftp” implements an in-process “sftp” server. This may simplify configurations using ChrootDirectory to force a different filesystem root on clients.
By default no subsystems are defined.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP