Problem with Passphrase option in Script
Hi,
I have created a script using Private Key Files. Also using the
Passphrase:
This is an example with same special characters as the original.
Is there any way I could automate my script without changing the Passphrase (not possible for me).
Script:
If I use the Script without
I have created a script using Private Key Files. Also using the
-passphrase
option. But my Passphrase isn't working. I suggest it is a problem with special characters.
Passphrase:
My,P%=!#"a$=k"-5,2"23'"phase
This is an example with same special characters as the original.
Is there any way I could automate my script without changing the Passphrase (not possible for me).
Script:
option batch on option confirm off open sftp://username@1.2.3.4:1234/ -hostkey="ssh-rsa 2048 xyzwvIj/Gsk48njdh6geGF6uXwqAtnfgMV7qUPy202w" -privatekey="D:\Pfad\priv.ppk" -passphrase="My,P%=!#"a$=k"-5,2"23'"phase" lcd D:\Pfad\Import cd home cd data get file.txt close exit
-passphrase
option and enter the Passphrase manually when asked for, it works.