Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

jtoma

i changed the fingerprint and ips
martin

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
jtoma

not authenticated or asking me for password is the error i get
jtoma

option batch abort
option confirm off
#open sftp://test@blah.taxcc.com -hostkey="ssh-rsa 2048 1e:1e:1e:1e:1e:1e:1e:1e:1e:1e:1e:1e:"
open sftp://test@blah.taxcc.com -privatekey="e:\BatchJobs\wotc"
option transfer binary
put -nopermissions -nopreservetime e:\BatchJobs\folder\folder\*-test.txt
close
exit

I just tried this and its not working.
martin

Re: Using public key from WINSCP to connect to bitvise and automate sending a txt file

To authenticate, you have to specify a private key using -privatekey switch of the open command:
https://winscp.net/eng/docs/scriptcommand_open
jtoma

Using public key from WINSCP to connect to bitvise and automate sending a txt file

Hello, i created a batch file to automatically transfer a file.

I am using winscp via public key and i am trying to send the file (automated) to a bitvise server.

option batch abort
option confirm off
open sftp://username@ssh.blahblah.com -hostkey="ssh-rsa 2048 1e:1e:1e:1e:1e:1e:1e:1e:1e:1e:1e:1e:1e:1e:1e"
option transfer binary
put -nopermissions -nopreservetime e:\BatchJobs\Files\pay\*-11111_PAY_ROLL_001-111.txt
close
exit

I keep getting stuck with enter password but we are using a public key so i don't know why its asking for a password

Please help!