Skip to content

Commit

Permalink
should work now
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Watt committed Nov 11, 2022
1 parent c67c7ba commit ea06e8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/remote-dev/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2683,7 +2683,7 @@ local function sshfsConnect(____bindingPattern0)
remoteDirPath = ____bindingPattern0.remoteDirPath
password = ____bindingPattern0.password
portSuffix = ____bindingPattern0.portSuffix
return os.execute(((((((((("echo " .. password) .. " | sshfs ") .. selectedHost.user) .. "@") .. selectedHost.hostName) .. ":") .. remoteDirPath) .. portSuffix) .. " ") .. localDirPath)
return os.execute((((((((((("echo " .. password) .. " | sshfs ") .. selectedHost.user) .. "@") .. selectedHost.hostName) .. ":") .. remoteDirPath) .. " -o password_stdin") .. portSuffix) .. " ") .. localDirPath)
end
local function connectToHost()
local hostLabel = vim.fn.input("enter host label: ")
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const sshfsConnect = ({
password:string
portSuffix:string
}):number=>{
return os.execute(`echo ${password} | sshfs ${selectedHost.user}@${selectedHost.hostName}:${remoteDirPath}${portSuffix} ${localDirPath}`)
return os.execute(`echo ${password} | sshfs ${selectedHost.user}@${selectedHost.hostName}:${remoteDirPath} -o password_stdin${portSuffix} ${localDirPath}`)
}

const connectToHost = ()=>{
Expand Down

0 comments on commit ea06e8e

Please sign in to comment.