Password protected private keys

#5 · closed · 5 comments

View on GitHub ↗

MAGICCC

Hi, I just wanted to try shellz, but it seems we can't use password protected private keys. `error while creating session for shell hetzner-magic: error while parsing key file /home/magic/.ssh/id_rsa: ssh: can not decode encrypted private keys `

Comments

evilsocket

If you have to insert the key passphrase each time, what's the point of using shellz over ssh in the first place for this machine? If your security model requires a passphrase for the key, putting it in the identity json file would break such model, no? so how would you avoid constant interaction?

evilsocket

( note for myself on how to do this with user interaction -> https://github.com/shazow/ssh-chat/blob/master/cmd/ssh-chat/key.go#L17 )

MAGICCC

Maybe you can interact with a kee agent

evilsocket

mmmm interesting, need to do some research. Thanks for the feedback and the idea! :D

evilsocket

fixed by https://github.com/evilsocket/shellz/commit/12cc1a539be7991e29a6c989c06a5acc796c0f8e