08:00 PART 2 - SSHFS - Clearnet
11:27 PART 3 - SSHFS - Tor Network
15:40 PART 4 - Simplify mounting SSHFS
18:43 PART 5 - Application data directories
27:37 PART 6 - Scripts
Links:
- Setting up a Server:
https://bitcointv.com/w/vNBotFQdHPmJjEA8PCiwgC?start=9m50s
https://bitcointv.com/w/rUELmYfAz9V7L7hZW9gq2b?start=3m3s
https://bitcointv.com/w/2BsRWV5tkMimGHHraqFbbP?start=1m49s
https://bitcointv.com/w/pnsi6kF9Kd9UnT9DWF7kW8?start=6m16s
- Dynamic DNS:
https://bitcointv.com/w/n3pVhyLjTDCaahY7U9Hk6w?start=21m51s
- DNS Hosting Service:
https://bitcointv.com/w/3mNk2hz5XbYDX3WHb9hixf?start=1m8s
- Yubikey series:
https://bitcointv.com/w/p/dhyWSopjPbkTqB5UanWL7G
- Tor hidden service:
https://bitcointv.com/w/sh8yMyAwixtC3ZxXaoWh33?start=3m54s
- Password manager PASS:
https://bitcointv.com/w/n3pVhyLjTDCaahY7U9Hk6w
https://bitcointv.com/w/2vVfD7cH6YzwCZ2Qodquzo
# PART 1
$ sshfs user@host:file_system mount_point -o IdentityFile=ssh_key
# PART 2
$ sudo nano /etc/ddclient.conf
---------------------------------------------------------
daemon=300
protocol=dyndns2
use=cmd, cmd='curl https://checkipv4.dedyn.io'
ssl=yes
server=update.dedyn.io
login=DOMAIN
password='AUTH'
DOMAIN
---------------------------------------------------------
# PART 3
$ sudo nano /etc/tor/torrc
---------------------------------------------------------
HiddenServiceDir /var/lib/tor/ssh
HiddenServicePort 22 127.0.0.1:22
---------------------------------------------------------
$ chmod 600 .ssh/config
$ torsocks ssh user@hidden_service_addr.onion
$ torsocks sshfs user@hidden_service_addr.onion:dir mount_point
# PART 4
$ sudo nano /etc/fstab
---------------------------------------------------------
USER@HOST:FILE_SYSTEM MOUNT_POINT fuse.sshfs rw,noauto,users,_netdev 0 0
---------------------------------------------------------
$ sudo mount -av
# PART 6
$ sudo nano .local/bin/ddir-lan.sh
---------------------------------------------------------
#!/bin/bash
sshfs cloud-lan:ddir/pass /home/npc/.password-store
sshfs cloud-lan:ddir/electrum /home/npc/.electrum
---------------------------------------------------------
$ chmod 600 ddir-lan.sh
# sudo nano ~/.profile
alias ddir-lan='. /home/npc/.local/bin/ddir-lan.sh'
$ export PATH=$PATH:$HOME:/.local/bin