ssh2 icon indicating copy to clipboard operation
ssh2 copied to clipboard

Does the SFTP client support passing variables, similar to sftp -o "SendEnv MY_VAR" ... ?

Open di-ov opened this issue 1 year ago • 2 comments

I tried passing the variable via SSH, as suggested in some other issues, like here: https://github.com/mscdex/ssh2/issues/1337

But, actually my SFTP server accepts only "sftp" commands and "ssh" is restricted, so I am trying to express this functionality sftp -o "SendEnv MY_VAR" username@host

di-ov avatar Dec 09 '24 13:12 di-ov

@mscdex Are there any plans to implement this?

di-ov avatar Feb 14 '25 15:02 di-ov

Very good suggestion. Could "sftp -o "SendEnv MY_VAR" username@host" be planned for implementation?

angelparaskov avatar Feb 19 '25 12:02 angelparaskov