Unfortunately my ssh session timed out and took my script with it

Have to run it again, it will probably find some more keys.
Try using screen:
screen -dmS
sessionname to start a new session (disconnected)
screen -ls to list sessions
screen -r
id to reconnect
ctrl+a d to disconnect
exit to ...exit!
If your connection craps out the screen will keep alive. You can even start a session on one PC then disconnect and reconnect to it from another.