burnett01-rsync-deployments/agent-add

9 lines
389 B
Plaintext
Raw Normal View History

2020-01-02 23:57:06 +08:00
#!/bin/sh
source agent-start
2020-01-03 04:53:37 +08:00
# I'm not particularly sure WHY this isn't working properly before, and why this makes it work
# but it seems to.
cat /dev/stdin | sed 's/-----BEGIN RSA PRIVATE KEY----- /-START-/' | sed 's/-----END RSA PRIVATE KEY----- /-END-/' |
tr ' ' '\n' | sed 's/-START-/-----BEGIN RSA PRIVATE KEY-----\n/' | sed 's/-END-/-----END RSA PRIVATE KEY-----\n/' |
ssh-add -