27
« on: June 23, 2022, 12:42 PM »
Hello
I want to sftp a file to a server using a public key.
I have stored the key in my desktop but I get an error:
CreateProcessW failed error:2
posix_spawn: No such file or directory
Can anyone tell me please the right syntax to send a C:\file.txt to sftpserver.com using C:\publickey.pkk ?
CMD sftp usage:
usage: sftp [-46aCfpqrv] [-B buffer_size] [-b batchfile] [-c cipher]
[-D sftp_server_path] [-F ssh_config] [-i identity_file]
[-J destination] [-l limit] [-o ssh_option] [-P port]
[-R num_requests] [-S program] [-s subsystem | sftp_server]
destination
PS: I cannot install anything on the machine
Thanks!