Enable key based authentication 1. Generating Keys Key generator is available with Putty to generate private and public keys. You…