There is test folder inside my sftp server. I executed the below lines of code
s ssh = ##class(%Net.SSH.Session).%New()
d ssh.Connect("host")
d ssh.AuthenticateWithUsername(username,password)
d ssh.OpenSFTP(.sftp)
s remote="\test\sample1.txt"
s local="c:\orders\sample1.txt"
s status=sftp.Put(local,remote)
I get the below error
"MSSH Error [8010102B]: Unable to send FXP_OPEN* [8010102b] at SFTP.cpp:539,0Put,IM%e^zPut+2^%Net.SSH.SFTP.1^1e^^^0"