scp script for doing sftp

Hi,

I have to do SFTP from Linux machine to Salaries SFTP folder.

Using psftp I got the following fingur print and I know using scp I can go the sftp transfer. But I believe I need public key file generated. Can some one pls let me know how to generate the public file using following finger print.

The server's host key is not cached in the registry. You
have no guarantee that the server is the computer you
think it is.
The server's rsa2 key fingerprint is:
ssh-rsa 1024 55:<Some more number>:e3:6d
If you trust this host, enter "y" to add the key to
PuTTY's cache and carry on connecting.
If you want to carry on connecting just once, without
adding the key to the cache, enter "n".
If you do not trust this host, press Return to abandon the
connection.
Store key in cache? (y/n)

Thanks,
Akshay

the key pair and the host fingerprint are different.

You need to make sure the host key is cached in the registry for the user executing the psftp exe. IOW, you can't test as one user, cache the fingerprint, and then log in as another user, or set up a scheduled task as another user for batch, and expect it to work.

As for the key pair, you'll need that for only for key-based authentication (no password prompt). Look at the docs for PuttyGen: Using public keys for SSH authentication