What I have done:
I have stored a .ssh/private-key (--- BEGIN...) into a repository variable with 'secured' marked. If it is a good idea I don't no.
Within a pipeline script I echoed such variable to a file like `echo ${VARIABLE} >~/.ssh/name`, chmod it to 600... btw: the file is 1675 bytes long, on bitbucket and local.
When I try to use `md5sum -b ~/.ssh/name` on such file the result is not the expected checksum, I have on my local system. I used different editors to create such variable, but the result is always the same.
But, the same procedure with the single line public key works as expected, the checksum is the same as on my local system and in pipeline script.
I'm working on Linux so line ending is always the byte 0x0a.
How can I see, the content is as expected?