Commit 2ae9b0aef1c0f8ca358ebac00ecda1c9e3053d94
1 parent
05bc632fa2
Exists in
master
and in
2 other branches
ssh key 정리
Showing
8 changed files
with
52 additions
and
55 deletions
Show diff stats
buildroot/buildroot-2016.08.1/board/falinux/common/mk-ssh-key.sh
1 | 1 | #!/bin/sh |
2 | 2 | |
3 | -DIR=$(dirname $0)/rootfs_overlay/etc/ssh | |
3 | +KEY_DIR=$(dirname $0)/../${FA_PRODUCT}/rootfs_overlay/etc/ssh | |
4 | +ROOT_DIR=$(dirname $0)/../${FA_PRODUCT}/rootfs_overlay/root | |
4 | 5 | |
5 | -if [ -d $(dirname $0)/../${FA_PRODUCT}/rootfs_overlay/ ] | |
6 | -then | |
7 | - DIR=$(dirname $0)/../${FA_PRODUCT}/rootfs_overlay/etc/ssh | |
8 | -fi | |
6 | +rm -Rf ${KEY_DIR}/ssh_host_* | |
9 | 7 | |
10 | -if [ -d $(dirname $0)/../${FA_PRODUCT}/${FA_VERSION}/rootfs_overlay/ ] | |
11 | -then | |
12 | - DIR=$(dirname $0)/../${FA_PRODUCT}/${FA_VERSION}/rootfs_overlay/etc/ssh | |
13 | -fi | |
8 | +mkdir -p ${KEY_DIR} | |
14 | 9 | |
15 | -mkdir -p ${DIR} | |
16 | - | |
17 | -ssh-keygen -f $DIR/ssh_host_rsa_key -t rsa | |
18 | -ssh-keygen -f $DIR/ssh_host_dsa_key -t dsa | |
19 | -ssh-keygen -f $DIR/ssh_host_ecdsa_key -t ecdsa | |
10 | +ssh-keygen -f ${KEY_DIR}/ssh_host_rsa_key -t rsa -C ${FA_PRODUCT}@${FA_COMPANY} -P "" | |
11 | +ssh-keygen -f ${KEY_DIR}/ssh_host_dsa_key -t dsa -C ${FA_PRODUCT}@${FA_COMPANY} -P "" | |
12 | +ssh-keygen -f ${KEY_DIR}/ssh_host_ecdsa_key -t ecdsa -C ${FA_PRODUCT}@${FA_COMPANY} -P "" | |
20 | 13 | |
14 | +mkdir -p ${ROOT_DIR}/.ssh | |
15 | +cat ${KEY_DIR}/ssh_host_rsa_key.pub > ${ROOT_DIR}/.ssh/authorized_keys | |
16 | +chmod 600 ${ROOT_DIR}/.ssh/authorized_keys | ... | ... |
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/etc/ssh/ssh_host_dsa_key
1 | 1 | -----BEGIN DSA PRIVATE KEY----- |
2 | -MIIBugIBAAKBgQCxkJ3WnJ9PNY3ZygWN7wo3S2LnPG/cakQVthDSxzzorOc4lH0j | |
3 | -XI/C90eEz+argdZ80eAJdLDLk9a/4EVVKkNxbQVzta7OB92H39FDiD2OtxmKR0Rd | |
4 | -VIqULmzaiCBepdo9ZdXFd7soZj2QlDoDrxlrJDvdDoGvWbk1/ILEGlDcUwIVAMuk | |
5 | -101oFe1rUJdtpRK7YdLTKIa9AoGADeUg5PFxyeYTukEhySDzLpza7KaNX28Avp6f | |
6 | -2s9tWBjWCWU02Ywq8sUbHNuCXESG+9sBZkfLvVrhcUGlWbNEQnMqMnOPjO6bcPEb | |
7 | -VGkfzw6L9h57uSMRCS935bKSilqyoU/pMZYVi/GlPKRVXoKUen3AfE+LYfpQTAHM | |
8 | -NpCTZR4CgYByV0fSCpY/83qNW+sJp68i2xyrL73CFb5A8/w7BGNebvmon6jT9QH0 | |
9 | -G920R/OUcOkKN6nnJMUdUTYSeZT6lHHbpcg7i9TLklSIi/2kxyN01HXrnjmaRLKn | |
10 | -mfYyl7bge9jLrfgXB95q5gLZiimv8AgJ1bPBUi31kqIrlrbHwbvcSAIUDgUB90T+ | |
11 | -+JkLLd1cozoKa3epxoU= | |
2 | +MIIBvAIBAAKBgQCxpSIdQ5FCDEg+E/u07g/B8tYID/ais7gOn9DNKxBFARTkttuJ | |
3 | +t8+Lp8eZ/cIqL4DraS+Oc2Tmat2DgfPMdGAaqGiJtTN384cP9KnXCDkfgf/yGvPZ | |
4 | ++xojYG2S/AXCyaxTURIQfUcd6bDjeojdeRE1L3yhksv3ofIcUzuG0HBTMQIVAPQl | |
5 | +uyXW4f0MivQ3FWn96Wr4vGMtAoGBAJwQsInIlaalYTgABkqn1HJ6jw0pmFSTRSlg | |
6 | +zED79tzXn0l7KsnM2D5IvqYsJ+PsQONfh4RyvQPuTr/Rt6EgQppmt1t+ff/5bUle | |
7 | +YaN2F50vgpUq6yr8uLmbf+RTUkVjLYJD0suR6oh1S4OoHDUjYZwi+L/cXE2lqIb8 | |
8 | +JD26E/QDAoGARqefC458QxM1uJBq/f+iOpiuCrjAWuncNiuTbUG+P3zyIihCEUrl | |
9 | +aGDnG3oqZtPxPXtdztbp/6gcTZgFUVPaSH1Gv5O0niM15FvB9aQwrbLvqVHdgZfS | |
10 | +XqngySWyJO6+euWzNYC0Ci3bmW3ed0gHMvutOMwKbQaKSb/dkDSSOqQCFQDZ+n4v | |
11 | +1Vtrk4Zeg8fK7KBCyuk8Tw== | |
12 | 12 | -----END DSA PRIVATE KEY----- | ... | ... |
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/etc/ssh/ssh_host_dsa_key.pub
1 | -ssh-dss AAAAB3NzaC1kc3MAAACBALGQndacn081jdnKBY3vCjdLYuc8b9xqRBW2ENLHPOis5ziUfSNcj8L3R4TP5quB1nzR4Al0sMuT1r/gRVUqQ3FtBXO1rs4H3Yff0UOIPY63GYpHRF1UipQubNqIIF6l2j1l1cV3uyhmPZCUOgOvGWskO90Oga9ZuTX8gsQaUNxTAAAAFQDLpNdNaBXta1CXbaUSu2HS0yiGvQAAAIAN5SDk8XHJ5hO6QSHJIPMunNrspo1fbwC+np/az21YGNYJZTTZjCryxRsc24JcRIb72wFmR8u9WuFxQaVZs0RCcyoyc4+M7ptw8RtUaR/PDov2Hnu5IxEJL3flspKKWrKhT+kxlhWL8aU8pFVegpR6fcB8T4th+lBMAcw2kJNlHgAAAIByV0fSCpY/83qNW+sJp68i2xyrL73CFb5A8/w7BGNebvmon6jT9QH0G920R/OUcOkKN6nnJMUdUTYSeZT6lHHbpcg7i9TLklSIi/2kxyN01HXrnjmaRLKnmfYyl7bge9jLrfgXB95q5gLZiimv8AgJ1bPBUi31kqIrlrbHwbvcSA== root@leios-900X5L | |
1 | +ssh-dss AAAAB3NzaC1kc3MAAACBALGlIh1DkUIMSD4T+7TuD8Hy1ggP9qKzuA6f0M0rEEUBFOS224m3z4unx5n9wiovgOtpL45zZOZq3YOB88x0YBqoaIm1M3fzhw/0qdcIOR+B//Ia89n7GiNgbZL8BcLJrFNREhB9Rx3psON6iN15ETUvfKGSy/eh8hxTO4bQcFMxAAAAFQD0Jbsl1uH9DIr0NxVp/elq+LxjLQAAAIEAnBCwiciVpqVhOAAGSqfUcnqPDSmYVJNFKWDMQPv23NefSXsqyczYPki+piwn4+xA41+HhHK9A+5Ov9G3oSBCmma3W359//ltSV5ho3YXnS+ClSrrKvy4uZt/5FNSRWMtgkPSy5HqiHVLg6gcNSNhnCL4v9xcTaWohvwkPboT9AMAAACARqefC458QxM1uJBq/f+iOpiuCrjAWuncNiuTbUG+P3zyIihCEUrlaGDnG3oqZtPxPXtdztbp/6gcTZgFUVPaSH1Gv5O0niM15FvB9aQwrbLvqVHdgZfSXqngySWyJO6+euWzNYC0Ci3bmW3ed0gHMvutOMwKbQaKSb/dkDSSOqQ= prime_oven@falinux | ... | ... |
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/etc/ssh/ssh_host_ecdsa_key
1 | 1 | -----BEGIN EC PRIVATE KEY----- |
2 | -MHcCAQEEIMTRyNYsOf5KhA/WC/HqmB31S6mbQOFzlnHHPQeOhjjEoAoGCCqGSM49 | |
3 | -AwEHoUQDQgAE0haZkobY2cF5sFO0TQxjhWYfp6R7HSjEbTy/8XRm7k80aaBI9zUL | |
4 | -2RhO/IkcDJVAge2vcgNRhx1qo/pny1aUTQ== | |
2 | +MHcCAQEEICxcMifdOYpg72tX3icU++iiYicK0VzpYxe3IUa09gZboAoGCCqGSM49 | |
3 | +AwEHoUQDQgAEKVXMBd/SJH9AGXi9AtterBQnpAbhP2sPretASHXKgoJIG3Ltj9Un | |
4 | +EhDSfh4ID6mVt6PcXD/k08c4gTCcO+GW1w== | |
5 | 5 | -----END EC PRIVATE KEY----- | ... | ... |
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/etc/ssh/ssh_host_ecdsa_key.pub
1 | -ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBNIWmZKG2NnBebBTtE0MY4VmH6ekex0oxG08v/F0Zu5PNGmgSPc1C9kYTvyJHAyVQIHtr3IDUYcdaqP6Z8tWlE0= root@leios-900X5L | |
1 | +ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBClVzAXf0iR/QBl4vQLbXqwUJ6QG4T9rD63rQEh1yoKCSBty7Y/VJxIQ0n4eCA+plbej3Fw/5NPHOIEwnDvhltc= prime_oven@falinux | ... | ... |
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/etc/ssh/ssh_host_rsa_key
1 | 1 | -----BEGIN RSA PRIVATE KEY----- |
2 | -MIIEpAIBAAKCAQEA1jsFHopxh8H9wQdbR+L8FIe0uqpmaVCLB+TCFwzDAJtQ3F4d | |
3 | -rw5ICDwDhsx+8GDRaPyaUShdgxLXa2gpnT64xe4qHyyBsB4L8p2m+HtyG2ZDpOto | |
4 | -SmfcVCAFo6aObo10lcs7JHD9lNB07YUNjIeL5j8lg+TA3Sqj6dkhu2QD0k/MCOsB | |
5 | -lrN8GfHPJSEtQwSKsEQPW70bp8XGk0DKAzDcH8P+b2v+l0unN7gAOKsTIfANhVur | |
6 | -P60ch0sDJUEs6BtsvkPwivrEb3J2gIzQXVMe5iBQkpE1HuZIpvHsN79Pq+UwgZip | |
7 | -2g/f4AbjysMRWUJzHfbnR2X82xx/MtWKrr7nxQIDAQABAoIBAQCQ5R5TR8P91EFy | |
8 | -2yzr9CQXJqogTrwxot5GGn0D5gfGU0ZfpfBhxEEIAL9J3upEXteEMMWW+rw0uPum | |
9 | -k68BwbhrduhaaVnV6pyeHe8exS+qRIKf+vBw0sp8w6PMygwvzdD6t5hqz1lT26Ia | |
10 | -PBGr6MnAkxkmmgOwEvUGZ2ufOMg057LqqP/3B67S2T3+pGqWYmrm/G1/mWP+8jWh | |
11 | -g3MfJ/l/1VWwve0bcAfDEmyZjilFbiuLEca0VgkbsG2yUvZvLXecFddpp5IoJi5/ | |
12 | -5wkQAnxrBNcmxIlkrHZNcGLSPWlQxn49h98qnJ7plvoydR89ds5ZQLG6Nu94PcOA | |
13 | -HV5ym7vBAoGBAPCn9QF9u6mSRebHimJRiIqK9rq/qs5XMqGiYDBOpKGhXpLUDUbb | |
14 | -29sC+cp+uok9hb44iwOkcDMTva1EDpyvV0Vjbax4dgykbhGr52TTVu5oPBf7oaJj | |
15 | -/Icz+jqbKNquz3ZZEyTjTfFdhtseeiuLYk1ULj/94ro3b8RtjY/L1t/5AoGBAOPj | |
16 | -vUhNIignITN1ODU0tEHK0S4NkHk6l6s7X6fFR00aaGRCmryHiFAk7c0NodagX3JH | |
17 | -vJSsjFyFmNrq0MUik+bM0sHi6XcHh55aYkIcou8eAEzORBDzOViyE7nd6uhGoTtO | |
18 | -tTJuRlRaD70HuYUBWHkjaW9IoYxcd/SeHnaYahEtAoGBAKUU0cCAG2cq68BvSMJA | |
19 | -48UFplJcgDKjJhwyYoFAsTYel91okOL2lk4aMHdzj0ntZf0ilFmfR0gCVq6wbMWW | |
20 | -kesLVYRl7bSmZsrAfS5wusU3w2FAP5RBukyUnyXsoY3BNJceaz92nVTgr01IDs4o | |
21 | -AvrAsCk9Y3YR6R15eQ4W6gMhAoGAAoVhcaxQxWrxZhVU4tnLaLLqr3y87WplhSJq | |
22 | -A3weNs8k+n72IUHKk0BlVRBiivJJPAVpI6fpAZkEwN86IgQo6LO5XSW6eXOe33SW | |
23 | -g663arfFPxRFEn7uUnnd1/+JerpVTEepn34yzvoUFH5CYiNKr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swzTMK42g4 | |
14 | +9MtBcmCD4syBlxibA6HrfKghni69QlOzC1SboiSriCg0EF56nhy7ojdjLoK9s+zR | |
15 | +5t18lmZJbrl2PdfxJEJVVg3jh4AlohHZVMYCg6OOPgw8uf43/4M0rB1JAoGBAN/N | |
16 | +Nv7FGyABgXZVlGM07HsRjWOd2VrqSImarWH3mAoELeVR+Z3ClQWc5UW7mNHjTZma | |
17 | +Vs+fII8e6ODvY/9i/kow+VD2Mvzwv7ievCK/EeZj7ECYX0P3TaZDe7oPgm+XQ6NF | |
18 | +3yzUeBqZh35ksF+yYpK8Jhvv1Mgw3SW/FpQvPZeLAoGAHP77djTUR2AO2+aQNJ4z | |
19 | +461nxVoTbmtffRwLgBOauS/LD3z54hbY1iulmEH9Sq0FbaLjiv6IfFV8m4lBjSJa | |
20 | +9GRvhGXAcP+173QNutdxE5pkpI5F9HXZEdLm8q86pi+SnzGfVzc+M+Xu3PWVcQZ9 | |
21 | +PeiOJYVpT4jdcWyshJR0wgECgYBCwtbq/SVwUMKr6C+RwJHizIOe+dGC+2yUD940 | |
22 | +4UUrh7+hLukFlKwbtof2W1XlFqdpcM8AtHlj+FaD8yWjY4Zz31QgQLFJHxAyJLf+ | |
23 | +rXzLe3dYdZvFjJpPRMY95K6GV1tH82n115PUa4Qtwh+TDIW3PAUqREr3RQxTXEOC | |
24 | +BO2crQKBgAV+aFgT1fPimhjPPPRWA7/Z+GVjpfxu+zbRs8+KBVl+5GFlffK4vZa0 | |
25 | +YiZYE54v/aJnm4F81BC+SFBvjKNDl15+SUg7Lt1z/yrlgQKFFYaUinlTqyQxNT8U | |
26 | +0TnXiHQxqcbSZZXlr8bmREN27LmQ4b4iidPd7Eav0MbPD9Z+6VcP | |
27 | 27 | -----END RSA PRIVATE KEY----- | ... | ... |
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/etc/ssh/ssh_host_rsa_key.pub
1 | -ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDWOwUeinGHwf3BB1tH4vwUh7S6qmZpUIsH5MIXDMMAm1DcXh2vDkgIPAOGzH7wYNFo/JpRKF2DEtdraCmdPrjF7iofLIGwHgvynab4e3IbZkOk62hKZ9xUIAWjpo5ujXSVyzskcP2U0HTthQ2Mh4vmPyWD5MDdKqPp2SG7ZAPST8wI6wGWs3wZ8c8lIS1DBIqwRA9bvRunxcaTQMoDMNwfw/5va/6XS6c3uAA4qxMh8A2FW6s/rRyHSwMlQSzoG2y+Q/CK+sRvcnaAjNBdUx7mIFCSkTUe5kim8ew3v0+r5TCBmKnaD9/gBuPKwxFZQnMd9udHZfzbHH8y1YquvufF root@leios-900X5L | |
1 | +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDWhwj4P29tLGA4YOE8Z6xvVxEbfVgrzfAEaHxmCuEXC/jvAwvE4LisWMGz3ZcGpxPkl47pZJLY45toWDd5I8/L1WoXH6clqkO+9B989dA5PGdVKNljkjC9kI8xVrYpGlIIGJaEuQ+fRHmp93mWtnbGDuVdc1auHOJYdfVlwFhQVTtKCQi+ooD3WXWf9XsOzGNYfZ7TFEQ9cHMWOMDp+cQLPcmOkTLs+/j+VebwLm3Yq5XbEbfV+filY3sIfsqXt0q31Ys3XXAC5Y+sVxYDn9lqgJfu4FrHq0jQAe+gLzR5XaDmXk9qjg20Hd7Y1AUy9Sy7BX79+2WsPK2JeuaAHvWj prime_oven@falinux | ... | ... |
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/root/.ssh/authorized_keys
... | ... | @@ -0,0 +1 @@ |
1 | +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDWhwj4P29tLGA4YOE8Z6xvVxEbfVgrzfAEaHxmCuEXC/jvAwvE4LisWMGz3ZcGpxPkl47pZJLY45toWDd5I8/L1WoXH6clqkO+9B989dA5PGdVKNljkjC9kI8xVrYpGlIIGJaEuQ+fRHmp93mWtnbGDuVdc1auHOJYdfVlwFhQVTtKCQi+ooD3WXWf9XsOzGNYfZ7TFEQ9cHMWOMDp+cQLPcmOkTLs+/j+VebwLm3Yq5XbEbfV+filY3sIfsqXt0q31Ys3XXAC5Y+sVxYDn9lqgJfu4FrHq0jQAe+gLzR5XaDmXk9qjg20Hd7Y1AUy9Sy7BX79+2WsPK2JeuaAHvWj prime_oven@falinux | ... | ... |