This commit is contained in:
nyxerinys 2026-06-29 11:41:23 -05:00
parent ea233a8fa1
commit 652cdc0ab9

View file

@ -5,7 +5,7 @@ let
Host="$1" Host="$1"
LFolder="$2" LFolder="$2"
RFolder="$3" RFolder="$3"
SSHCMD="ssh -o "StrictHostKeyChecking=no,UserKnownHostsFile=/dev/null" -q -S /tmp/sshfs.sock" SSHCMD="ssh -o \"StrictHostKeyChecking=no,UserKnownHostsFile=/dev/nul\" -q -S /tmp/sshfs.sock"
TmuxName="rsshfs" TmuxName="rsshfs"
# SETUP # SETUP
@ -76,7 +76,7 @@ let
echo "[ Reverse port opened on $PORT ]" echo "[ Reverse port opened on $PORT ]"
echo "[ Pushing local $LFolder to the remote $RFolder ]" echo "[ Pushing local $LFolder to the remote $RFolder ]"
$SSHCMD null "if [[ ! -d $RFolder ]]; then mkdir -p $RFolder; fi" $SSHCMD null "if [[ ! -d $RFolder ]]; then mkdir -p $RFolder; fi"
$SSHCMD null "sshfs --run \"sshfs -o "StrictHostKeyChecking=no,UserKnownHostsFile=/dev/null" -p $PORT localhost:$LFolder $RFolder\"" $SSHCMD null "sshfs -o \"StrictHostKeyChecking=no,UserKnownHostsFile=/dev/null\" -p $PORT localhost:$LFolder $RFolder"
pause pause