fix ssh
This commit is contained in:
parent
ea233a8fa1
commit
652cdc0ab9
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue