Kapitel 13/Tutorial.md aktualisiert
This commit is contained in:
@@ -122,7 +122,7 @@ SFTP_HOST=192.168.51.2
|
||||
SFTP_PORT=22
|
||||
SFTP_USER=sftp_uploader
|
||||
SFTP_KEY=/home/clipper/.ssh/nc_sftp_ed25519
|
||||
SFTP_DROP_BASE=incoming
|
||||
DROP_BASE="/mnt/hdd/incoming"
|
||||
|
||||
CLIPPER_IN=/srv/clipper/watch
|
||||
CLIPPER_OUT=/srv/clipper/out
|
||||
@@ -515,14 +515,22 @@ In diesem Schritt erstellen wir den eigentlichen Workflow in **n8n**. Er sorgt d
|
||||
|
||||
**8.1 Vorbereitung (einmalig) – SFTP-Verbindung testen
|
||||
Ort: Clipper-LXC Shell
|
||||
|
||||
EInmalig auf dem Nextcloud LXC:
|
||||
```bash
|
||||
mkdir -p /mnt/hdd/incoming
|
||||
chown sftp_uploader:sftp_uploader /mnt/hdd/incoming
|
||||
chmod 700 /mnt/hdd/incoming
|
||||
```
|
||||
|
||||
Wir prüfen, ob Clipper mit dem Key des sftp_uploader auf den Nextcloud-Host kommt und die Drop-Zone erreichbar ist.
|
||||
```bash
|
||||
su - clipper
|
||||
sftp -i ~/.ssh/nc_sftp_ed25519 -oBatchMode=yes -oStrictHostKeyChecking=accept-new -P 22 sftp_uploader@<IP_des_Nextcloud_LXC> <<'SFTP'
|
||||
mkdir incoming
|
||||
mkdir incoming/_test
|
||||
ls incoming
|
||||
rmdir incoming/_test
|
||||
mkdir /mnt/hdd/incoming
|
||||
mkdir /mnt/hdd/incoming/_test
|
||||
ls /mnt/hdd/incoming
|
||||
rmdir /mnt/hdd/incoming/_test
|
||||
SFTP
|
||||
exit
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user