xref: /freebsd/contrib/file/magic/Magdir/ssh (revision 898496ee09ed2b7d25f6807edc4515628196ec0a)
1b6cee71dSXin LI# Type:	OpenSSH key files
2b6cee71dSXin LI# From:	Nicolas Collignon <tsointsoin@gmail.com>
3b6cee71dSXin LI
4*898496eeSXin LI0	string	SSH\040PRIVATE\040KEY	OpenSSH RSA1 private key,
5b6cee71dSXin LI>28	string	>\0			version %s
6*898496eeSXin LI0	string	-----BEGIN\040OPENSSH\040PRIVATE\040KEY-----	OpenSSH private key
7*898496eeSXin LI# https://www.rfc-editor.org/rfc/rfc5958
8*898496eeSXin LI0	string	-----BEGIN\040PRIVATE\040KEY-----	OpenSSH private key (no password)
9*898496eeSXin LI0	string	-----BEGIN\040ENCRYPTED\040PRIVATE\040KEY-----	OpenSSH private key (with password)
10b6cee71dSXin LI
11*898496eeSXin LI0	string	ssh-dss\040		OpenSSH DSA public key
12*898496eeSXin LI0	string	ssh-rsa\040		OpenSSH RSA public key
13b6cee71dSXin LI0	string	ecdsa-sha2-nistp256	OpenSSH ECDSA public key
14b6cee71dSXin LI0	string	ecdsa-sha2-nistp384	OpenSSH ECDSA public key
15b6cee71dSXin LI0	string	ecdsa-sha2-nistp521	OpenSSH ECDSA public key
16c2931133SXin LI0	string	ssh-ed25519		OpenSSH ED25519 public key
17d38c30c0SXin LI
18d38c30c0SXin LI0	string	SSHKRL\n\0
19d38c30c0SXin LI>8	ubelong	1		OpenSSH key/certificate revocation list, format %u
20d38c30c0SXin LI>>12	ubequad	x		\b, version %llx
21d38c30c0SXin LI>>>20	beqdate	x		\b, generated %s
22d38c30c0SXin LI
232726a701SXin LI# From:		Joerg Jenderek
242726a701SXin LI# URL:		https://en.wikipedia.org/wiki/PuTTY
252726a701SXin LI# Reference:	https://the.earth.li/~sgtatham/putty/latest/putty-0.73.tar.gz
262726a701SXin LI#		/sshpubk.c
272726a701SXin LI0	string		PuTTY-User-Key-File-	PuTTY Private Key File
282726a701SXin LI#!:mime	text/plain
292726a701SXin LI# https://github.com/github/putty/blob/master/windows/installer.wxs
302726a701SXin LI!:mime	application/x-putty-private-key
312726a701SXin LI!:ext	ppk
322726a701SXin LI# version 1 or 2
332726a701SXin LI>20	string		x			\b, version %.1s
342726a701SXin LI# name of the algorithm like: ssh-dss ssh-rsa ecdsa-sha2-nistp256 ssh-ed25519
352726a701SXin LI>23	string		x			\b, algorithm %s
362726a701SXin LI# next line says "Encryption: " plus an encryption type like aes256-cbc or none
372726a701SXin LI>32	search/13	Encryption:\040		\b, Encryption
382726a701SXin LI>>&0	string		x			%s
392726a701SXin LI# next line says "Comment: " plus the comment string
402726a701SXin LI>>>&0	search/3	Comment:\040
412726a701SXin LI>>>>&0	string		x			"%s"
422726a701SXin LI
43