Skip to content

Instantly share code, notes, and snippets.

View zarulizham's full-sized avatar
🏠
Working from home

Zarul Izham Zubir zarulizham

🏠
Working from home
  • Pro Office Solutions
  • Selangor, Malaysia
  • 21:22 (UTC +08:00)
View GitHub Profile
@zarulizham
zarulizham / add-user.sh
Last active July 4, 2018 03:01 — forked from askz/add-user.sh
Chroot Jail for SSH/SFTP Access toolkit
#!/bin/bash
# add "prisoner" in the jail you created before !!
# USAGE : ./add-user.sh <username> <password> <type>
# Type 1 : sftp jailed user ; Type 2 ssh jailed user
# A password will be auto-generated with pwgen (sudo apt install pwgen)
# Set your jail path wherever you want.
JAIL_PATH=/home/www/
- Do a `git clone https://github.com/dashevo/bitcore-node-dash -b impr/getVersion`
- cd bitcore-node-dash
- npm install
- npm install insight-api-dash --S
- npm install insight-ui-dash --S
- cd $HOME/.bitcore/
- vim or nano bitcore-node-dash.json
- paste [REF2]