个人笔记记录(常用)

个人笔记


sftp配置

<p><strong>编辑SSH配置文件</strong></p> <pre><code>vim /etc/ssh/sshd_config</code></pre> <pre><code>#Subsystem sftp /usr/libexec/openssh/sftp-server Subsystem sftp internal-sftp # Example of overriding settings on a per-user basis #Match User anoncvs # X11Forwarding no # AllowTcpForwarding no # PermitTTY no # ForceCommand cvs server Match Group sftp ChrootDirectory /mnt/sdcard ForceCommand internal-sftp AllowTcpForwarding no X11Forwarding no</code></pre> <p><strong>重启SSH服务</strong> service sshd restart</p> <p>检测配置</p> <pre><code>sshd -t</code></pre> <p>测试连接</p> <pre><code>sftp -P 8000 hwj@35.241.99.104</code></pre> <h4><a href="https://www.jianshu.com/p/cc4750f9a8dd">参考来源</a></h4>

页面列表

ITEM_HTML