Skip to content

Commit

Permalink
Add new target for copying public SSH key to root user on nodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanlovett committed Jul 8, 2015
1 parent 83bd791 commit 749df91
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
DEPLOY_C="ds/deploy:1"

rootsshkey:
for h in proxy_server jupyterhub_host jupyterhub_node1 jupyterhub_node2 ; do \
echo $$h ; \
ssh ubuntu@$$h 'sudo cp -p /root/.ssh/authorized_keys{,-}; sudo install -o root -m 0600 /home/ubuntu/.ssh/authorized_keys /root/.ssh/authorized_keys' ; \
done

build:
docker build -t $(DEPLOY_C) .

Expand Down

0 comments on commit 749df91

Please sign in to comment.