Puttygen key generation utility

There are numerous ways to accomplish this. Personally I would set up an SSH server (such as FreeSSHd ) on the Windows PC so that everything could be accomplished in one step using the Linux server. If you are not able to install software on your PC, you can still make this work by scheduling scripts on both the Windows PC and Linux server.First configure SSH public-key authentication to connect from the Windows PC to the Linux server. This is a more secure alternative to having the password in clear text in your script, and a better configuration for scheduled tasks.Perform these steps on the Windows PC:
  1. Open the PuTTYgen key generation utility
  2. Under "Parameters" select "SSH-2 RSA" and leave the number of bits at the default 1024
  3. Under "Actions" click "Generate" and move your cursor around when prompted
  4. Leave "Key Passphrase" blank since you want to automate the process without entering a passphrase every 30 minutes
  5. Under "Actions", click "Save public key" and provide a file name and location for the key
  6. Under "Actions", click "Save private key", ensuring the "Save as type" is set to "PuTTY Private Key Files (*.ppk)"
  7. Open the public key saved in step 5 (VERY IMPORTANT - make sure it's the PUBLIC key, not the private key), and copy the contents into your clipboard
Perform these steps on the Linux Server:
  1. ssh into the Linux server, and using your favorite editor open the ~/.ssh/authorized_keys file. If it doesn't exist, you may need to execute these commandsmkdir -p ~/.ssh touch ~/.ssh/authorized_keys vi ~/.ssh/authorized_keys
  2. Paste the contents of your Windows public key into this file, then save and close the file
Next, create a scheduled task on the Linux server to keep "myfile" updated every 30 minutes.
  1. Open a text editor and place the contents of your script in the file e.g. "vi update_myfile.sh"#!/bin/bash tail -n 100000 conveyor2.log | grep -P 'curingresult OK' | sed 's/FT\ /FT/g' |awk '{print $5 $13}' |sed 's/\"//g' | uniq | sort -n | uniq > /var/mp/95910/log/myfile.txt
(edit the path as needed)
  1. Schedule the task to run every 30 minutes (at 15 and 45 minutes past every hour) using cron. Run the command "crontab -e", and add this line, changing the path as needed:15, 45 * * * * /home//update_myfile.sh

Puttygen generate PPK

Puttygen generate SSH key

Puttygen generate certificate

Puttygen key generator download

Puttygen begin rsa private key