Skip to content

Instantly share code, notes, and snippets.

View lgauthier1's full-sized avatar
👽

LGA lgauthier1

👽
  • NeoXam
  • Paris
  • 16:35 (UTC +01:00)
View GitHub Profile
@lgauthier1
lgauthier1 / readme.md
Last active August 23, 2021 16:25 — forked from troyfontaine/readme.md
Logging SFTP interactions on a Chrooted User in Ubuntu 14.04

How to setup SFTP Logging on Ubuntu 14.04 for a Chrooted User

Prerequisites: Using internal-sftp for sftp; rsyslog for logging

Step 1. Set up your chrooted directories

sudo mkdir /sftp/myshare
sudo mkdir /sftp/myothershare

Step 2. Create your groups for your chrooted users

@lgauthier1
lgauthier1 / jq-cheetsheet.md
Created September 1, 2021 17:50 — forked from olih/jq-cheetsheet.md
jq Cheet Sheet

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq