Re: Windows security and WinSCP connection profiles
Please start here:
https://winscp.net/eng/docs/scripting#different_account
https://winscp.net/eng/docs/scripting#different_account
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
< 2025-06-25 12:05:07.881 Script: Authenticating...
. 2025-06-25 12:05:07.882 Asking user:
. 2025-06-25 12:05:07.882 **Continue connecting to an unknown server and add its host key to a cache?**
. 2025-06-25 12:05:07.882
. 2025-06-25 12:05:07.882 The host key is not cached for this server:
. 2025-06-25 12:05:07.882 dataintegration.myblueship.com (port 22)
. 2025-06-25 12:05:07.882
. 2025-06-25 12:05:07.882 You have no guarantee that the server is the computer you think it is.
. 2025-06-25 12:05:07.882
. 2025-06-25 12:05:07.882 The rsa2 key fingerprint is:
. 2025-06-25 12:05:07.882 ssh-rsa 2048 YCiQxF6PkjPbrnAEBmO6KOl8s3q6LhA6HVAl7fBKQNQ
. 2025-06-25 12:05:07.882
. 2025-06-25 12:05:07.882 If you trust this host, select Accept to add the key to WinSCP's cache and carry on connecting.
. 2025-06-25 12:05:07.882 If you want to carry on connecting just once, without adding the key to the cache, select Connect Once.
. 2025-06-25 12:05:07.882 If you do not trust this host, select Cancel to abandon the connection.
. 2025-06-25 12:05:07.882
. 2025-06-25 12:05:07.882 In scripting, you should use a -hostkey switch to configure the expected host key. ()
< 2025-06-25 12:05:07.882 Script: Continue connecting to an unknown server and add its host key to a cache?
< 2025-06-25 12:05:07.882 The host key is not cached for this server:
< 2025-06-25 12:05:07.882 dataintegration.myblueship.com (port 22)
< 2025-06-25 12:05:07.882 You have no guarantee that the server is the computer you think it is.
< 2025-06-25 12:05:07.882 The rsa2 key fingerprint is:
< 2025-06-25 12:05:07.882 ssh-rsa 2048 YCiQxF6PkjPbrnAEBmO6KOl8s3q6LhA6HVAl7fBKQNQ
< 2025-06-25 12:05:07.882 If you trust this host, select Accept to add the key to WinSCP's cache and carry on connecting.
< 2025-06-25 12:05:07.882 If you want to carry on connecting just once, without adding the key to the cache, select Connect Once.
< 2025-06-25 12:05:07.882 If you do not trust this host, select Cancel to abandon the connection.
< 2025-06-25 12:05:07.882 In scripting, you should use a -hostkey switch to configure the expected host key.
. 2025-06-25 12:05:18.086 Answer: Cancel
. 2025-06-25 12:05:18.086 Attempt to close connection due to fatal exception:
* 2025-06-25 12:05:18.086 Host key fingerprint is ssh-rsa 2048 YCiQxF6PkjPbrnAEBmO6KOl8s3q6LhA6HVAl7fBKQNQ.
* 2025-06-25 12:05:18.086 (Exception) **Host key wasn't verified!**
. 2025-06-25 12:05:18.086 Closing connection.