0

how do i provide a passphrase key in windows batch file to automate ssh upload to server?

ECHO OFF
ECHO open Abc@142.15.0.178

then the server ask for passphrase key that i created. How to put the passphrase key into the batch file?

Naura
  • 55
  • 1
  • 1
  • 7
  • Is it not more secure to add the key to the arguments? Because credentials in scripts is not prefered. Something like this: https://stackoverflow.com/questions/3494898/looking-for-unix-style-getopt-command-line-parsing-in-a-windows-batch-file – online Thomas Dec 13 '18 at 10:56
  • @Thomas, thanks for your reply. Yes it is less secure but the requirement is like that. I've never put the key inside the arguments before that's why i don't know how to do it. – Naura Dec 13 '18 at 11:01

0 Answers0