##EDIT##
finally it works but I used simply ssh-keygen and not ssh-keygen -o
Strange.
#
EDIT_2 https://superuser.com/questions/1455735 ... eygen-o-do
Code: Select all
-o Causes ssh-keygen to save private keys using the new OpenSSH format rather than the more compatible PEM format. The new format has increased resistance to brute-force password cracking but is not supported by versions of OpenSSH prior to 6.5. Ed25519 keys always use the new private key format.
hello,
I can try example here
https://sshenc.sh/
First you need edit script because mktemp command from busybox is not working properly and install recent version from the Puppy Package Manager
replace mktemp by /usr/bin/mktemp ( line 43 and next )
Code: Select all
temp_dir="$(/usr/bin/mktemp -d -t $me.XXXXXX)"
temp_file_key="$(/usr/bin/mktemp -u $temp_dir/$me.XXXXXX.key)"
temp_file="$(/usr/bin/mktemp $temp_dir/$me.XXXXXX.cypher)"
Code: Select all
root# ssh-keygen -o
Code: Select all
root# ./sshenc.sh -p ~/.ssh/id_rsa.pub < test.txt > test.txt.enc
but :
Code: Select all
root# ./sshenc.sh -s ~/.ssh/id_rsa < test.txt.enc
no valid decryption key supplied
Any idea ?
Thanks