How to use keys in docker plug-ins
sinbino opened this issue · 3 comments
sinbino commented
No matter how I set sshpiper.authorized_keys and sshpiper.private_key, the following error is returned.
cannot create upstream for 192.168.xxx.xxx:xxxxx with public key auth: rpc error: code = Unknown desc = ssh: no key found
With password authentication, I am able to connect with the same settings by simply removing sshpiper.authorized_keys and sshpiper.private_key from the container.
Please could you give me some advice on how to set up the use of authentication keys?
sinbino commented
Resolved.
It worked by base64 encoding the authorized_keys and id_ed25519 files as is.
tg123 commented
hmm the param name is bit confusing, should be xx-base64 for better accuracy
sinbino commented
Alternatively, it would be easier to understand by simply adding a simple sample to the plugin's README.md.