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

Advertisement

jtoma
Joined:
Posts:
4

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!

Reply with quote

Advertisement

jtoma
Joined:
Posts:
4

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.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

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.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum