github.com_burnett01_rsync-.../agent-add

6 lines
262 B
Text
Raw Normal View History

2020-01-02 16:57:06 +01:00
#!/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 PRIVATE KEY-----/' | sed 's/-END-/-----END RSA PRIVATE KEY-----/' |
ssh-add -