github.com_burnett01_rsync-.../agent-add
2020-01-02 20:47:00 +00:00

5 lines
No EOL
261 B
Bash

#!/bin/sh
agent-start
echo /dev/stdin | sed 's/-----BEGIN RSA PRIVATE KEY-----/-START-/' | sed 's/-----END RSA PRIVATE KEY-----/-END-/' | tr ' ' '\n' | sed 's/-START-/-----BEGIN RSA P
RIVATE KEY-----/' | sed 's/-END-/-----END RSA PRIVATE KEY-----/' | ssh-add -