Re: Server refused our key
Can you post a full log file for both cases?
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
WinScp script
# Automatically answer all prompts negatively not to stall
# the script on errors
option batch abort
# Disable overwrite confirmations that conflict with the previous
option confirm off
#
#Dynamic code is added below
#
open -passive -timeout=6 SFTP://userid@st.concursolutions.com -privatekey=c:\key.ppk -hostkey="ssh-rsa 2048 4f:cd:a3:33:4b:63:38:48:7a:c4:4e:25:28:3d:a2:f3"
PUT -resume c:\test.asc test.asc
close
exit
c:\winscp.com /script=st.concursolutions.com.17294.txt
batch abort
confirm off
Searching for host...
Connecting to host...
Authenticating...
Using username "userid".
Server refused our key.
Using keyboard-interactive authentication.
Password:
Connection has been unexpectedly closed. Server sent command exit status 0.
Authentication log (see session log for details):
Using username "userid".
Server refused our key.
Authentication failed.