惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

TaoSecurity Blog
TaoSecurity Blog
Jina AI
Jina AI
雷峰网
雷峰网
月光博客
月光博客
The GitHub Blog
The GitHub Blog
WordPress大学
WordPress大学
B
Blog RSS Feed
美团技术团队
C
CXSECURITY Database RSS Feed - CXSecurity.com
小众软件
小众软件
Security Latest
Security Latest
Microsoft Azure Blog
Microsoft Azure Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Cybersecurity and Infrastructure Security Agency CISA
Last Week in AI
Last Week in AI
A
Arctic Wolf
Latest news
Latest news
Attack and Defense Labs
Attack and Defense Labs
I
Intezer
F
Fortinet All Blogs
罗磊的独立博客
MongoDB | Blog
MongoDB | Blog
Webroot Blog
Webroot Blog
S
Secure Thoughts
Help Net Security
Help Net Security
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
V
Visual Studio Blog
P
Proofpoint News Feed
博客园 - 【当耐特】
P
Privacy International News Feed
V
Vulnerabilities – Threatpost
Stack Overflow Blog
Stack Overflow Blog
Know Your Adversary
Know Your Adversary
云风的 BLOG
云风的 BLOG
Hacker News: Ask HN
Hacker News: Ask HN
L
LINUX DO - 最新话题
H
Help Net Security
爱范儿
爱范儿
酷 壳 – CoolShell
酷 壳 – CoolShell
S
SegmentFault 最新的问题
Forbes - Security
Forbes - Security
T
Tailwind CSS Blog
量子位
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
T
Tenable Blog
Cloudbric
Cloudbric
N
News and Events Feed by Topic
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Hugging Face - Blog
Hugging Face - Blog

博客园 - 三角形

Docker镜像加速器,检测失效 & 测速 ESXi 不认SN640 SN750 等容量大的 NVME 出租司机给我上的MBA课 -- 转载(文末有18年后的续集) 飞牛影视配置独立端口号,不与飞牛公用web端口 esxi 7 定时关机 Oracle RAC 部署 (VMware共享磁盘配置方法) esxi 无法在浏览器中关闭虚拟机 使用Rocky Linux 快速部署虚拟化环境,浏览器访问,开源免费 Esxi 使用 RDM (Raw Device Mapping) 功能直接将磁盘分配给虚拟机,直通 esxi重装后,之前的卷没能自动挂载 OpenSSH 远程代码执行漏洞(CVE-2024-6387) Ubuntu22.04 和 centos7处理方法 esxi 虚拟机 导出 & 导入 QYN2 2025年免费收徒(运维) XFS误删除文件,数据恢复 在esxi上:获取vm列表,批量给vm关机,批量给vm强制关机 esxi主机,自动创建30个vm,并自动完成vm初始化操作 自动查询12306余票,结果以txt形式放到nginx网站目录下 ubuntu自动下载电视剧《鸣龙少年》
部署SFTP服务,并限制访问目录
三角形 · 2024-08-21 · via 博客园 - 三角形

需求:部署sftp,让用户MSYH可以上传文件到/home/ftp/luyin,禁止其ssh登录,禁止其访问其他目录

# 创建用户,禁止其ssh登录,并为其设置密码
useradd -s /sbin/nologin MSYH
passwd MSYH

# 创建上传文件的目录
mkdir -p /home/ftp/luyin

# 设置目录权限
chown MSYH.MSYH /home/ftp/luyin

# 修改 /etc/ssh/sshd_config ,文件尾部添加如下内容
Match User MSYH
    ForceCommand internal-sftp
    PasswordAuthentication yes
    ChrootDirectory /home/ftp

# 重启sshd服务
systemctl restart sshd

# 本机sftp命令验证,也可以使用sftp客户端验证,端口同ssh
sftp MSYH@127.0.0.1