hostkey not accepting in script
hostkey not accepting in script. says error
Starting transferring files
Connecting to BUCE-Campari@sftp.edi-plus.com/ -hostkey="ssh-rsa 2048 kuWgs7m9qrcbOBKb2yhbVW3OMk4HCPG14bve73bCO1g=" -rawsettings ResolveSymlinks=0
batch abort
confirm off
In scripting you should not rely on saved sites, use this command instead:
open sftp://Campari:***@sftp.edi-plus.com/ -hostkey="ssh-rsa 2048 kuWgs7m9qrcbOBKb2yhbVW3OMk4HCPG14bve73bCO1g="
Searching for host...
Connecting to host...
Authenticating...
Using username "Campari".
Authenticating with pre-entered password.
Authenticated.
Starting the session...
Session started.
Active session: [1] BUCE-Campari@sftp.edi-plus.com
Unknown command '2048'.
FTP failed... Sending email