I've created a service account for a scheduled task on our 2008R2 server. The task runs a powershell script, which will, among other things, download an archive from a linux server every time it is run using PuTTYs pscp. However, it does not work, since the service account has never connected to that server before, and does not know its host key. Reading the manual and searching, it turns out that these keys are stored in the registry, under
HKEY_USERS\<SID>\Software\SimonTatham\PuTTY\SshHostKeys. But here enters the problem: The service account does not have a local profile, since it is not allowed local login. And therefore it does not have an entry in HKEY_USERS.
So, how can this be fixed? I doubt it'd be a very good idea to just create the SID key under HKEY_USERS, but there must be some workaround? Could I put this in some default user key?