github.com_burnett01_rsync-.../agent-add
John Internet 505578365f cat. not echo. fuck sake.
source the agent start.
2020-01-02 20:52:12 +00:00

6 lines
No EOL
274 B
Bash

#!/bin/sh
source agent-start
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 -