WinSCP authentication with ssh
Hello,
I want to use a WinSCP script to get files from Linux server with Windows Command Prompt.
I use a script for that
# Automatically abort script on errors
option batch abort
# Disable overwrite confirmations that conflict with the previous
option confirm off
# Connect to SFTP server using a password
open sftp://user@ip:port/ -hostkey="ssh-rsa 2048 fingerprint"
# Upload file
get out/* C:\Users\Timo\Documents\Olerex\in\
# Disconnect
close
bye
When I run it in Command Prompt it tries to authenticate with password , that is not allowed.
I want to use a WinSCP script to get files from Linux server with Windows Command Prompt.
I use a script for that
# Automatically abort script on errors
option batch abort
# Disable overwrite confirmations that conflict with the previous
option confirm off
# Connect to SFTP server using a password
open sftp://user@ip:port/ -hostkey="ssh-rsa 2048 fingerprint"
# Upload file
get out/* C:\Users\Timo\Documents\Olerex\in\
# Disconnect
close
bye
When I run it in Command Prompt it tries to authenticate with password , that is not allowed.