Skip to content

Instantly share code, notes, and snippets.

@FooBarWidget
Last active October 18, 2018 16:07
Show Gist options
  • Save FooBarWidget/433a6f69b529434276ebd86b59a8aac2 to your computer and use it in GitHub Desktop.
Save FooBarWidget/433a6f69b529434276ebd86b59a8aac2 to your computer and use it in GitHub Desktop.
Install macos-slave-access-key.pub
#!/bin/bash
{
set -ex
cd $HOME
mkdir -p .ssh
chmod 700 .ssh
echo ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBCJ7+aYfRPqG7KZWpxxIwOV+z4YTOhnwTxIq9szO4GhdpLKdrBMrXMpYEut31w+g2d3N5gIDAaHUA72IfuC0Eig= macos-slave-host >> .ssh/authorized_keys
chmod 600 .ssh/authorized_keys
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment