From aee96a257edefa5d359a6bc3d278f1afee5ccfbd Mon Sep 17 00:00:00 2001 From: Tobias Date: Sun, 5 Apr 2026 14:57:21 +0100 Subject: [PATCH] Update README.md --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9771758..ea7d943 100644 --- a/README.md +++ b/README.md @@ -79,11 +79,12 @@ Essentially it is a restricted user who's only function and ability is to transf With their own SSH key, restricted SSH permissions, no login shell and a modified chroot directory limiting system visability -After this I created an alias within my .bashrc file as follows: +After this I created a function within my .bashrc file as follows: ``` bash -alias send2intra="scp -i /path/2/key "$1" jaileduser@192.168.0.70:/files" - +send2intra() { +scp -i /path/2/key "$1" jaileduser@192.168.0.70:/files" +} ``` -This allows me to quickly type ```send2intra image.png``` in my terminal and have the file transfered to Apache, hosted and available for download within miliseconds \ No newline at end of file +This allows me to quickly type ```send2intra image.png``` in my terminal and have the file transfered to the container, hosted by Apache and available for download within miliseconds