Encrypt Public keys and etc.

This commit is contained in:
Kazuhiro MUSASHI 2020-11-02 01:04:19 +09:00
parent 55758a01ab
commit 4432c311e8
3 changed files with 68 additions and 40 deletions

View File

@ -1,38 +1,58 @@
-----BEGIN OPENSSH PRIVATE KEY----- md5:2aaa557761d031dc97d91ac1e07268fe:salt:5-37-241-98-255-155-15-107:aes-256-cfb:BQV5sknqFky73ScXxOlhgfgbvhE9l+FkBB49yxYb397JKAwzDpRm+pe8IMSD
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcn T6qzGSkf2xN8O0K/IhUH97/R4OLSh/+kYmQ9v/imDRw91C+f6nT/LC4uxvAq
NhAAAAAwEAAQAAAYEAtWmcJslzZaMUgqKoFW+lWI8XLpOh6rzHHb4h6ueUDQSwk9ShrxlA 43SZPxbMohaRAfzJ717c8rPmjOSxPjtRIyNLiLPPSQv4naWiiO4ILzBTREtR
RewgJTbOUIcVEl28xXPDmNm1VKMHCRMBqvCSQVJHdVFCkLFzIX++t0n9A3tJef1GSsCc/D wQqi1gRdvfbhcEthXSXDAKcu3BYCzTPH2hib1lQUEjyY9r1hF0o6OOwHEv0D
g2si/TO4Vux56mkDFqp0mJk3nI2obihh78PPSJAd6ScNZDUYGP2jM33ubbeytm/qPITd5I t3m1Vcax661a+SkCtUM/3oYOnoLjntHLZ8Mb1NdP5oyoeDKNEXE/0p/CExkT
gEKbKgQMzKDC1VaFmwTN9idhvFS8U2dA1oVG1CtOVhAPEQ5xqY5Dwfp4FZSrnvF64DZ7UX lTL/VroUhfFVsy2v2j5JC9Pvf5t9ZPZj5/JiDDTZvQNBFnBwtAxIHLkvYs6i
PKG1ww4mxonECkM2hmcRLHs/FPGXpCsAUUGT9DAL3OJSxHDc+46i3Naxc6+mRyI9F2Wv9H jJ6LvZf0o5Yaf2XZZdKgw36hrQ9fpK6VdYjPP5j9FWJnuh1UFp21F7bVe3XO
HDT1d3U7nL9ZQggm0L/E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lWqrN/bly94FQVTjNEsBxK7RiMlAkXrJQhnr6nLaLK0yEAJUHGZXF0LwnxYH9r734W6eDfQiqyqmbE2vPg= md5:5549740853f444a4f9b5e5b216d9c1c0:salt:36-148-76-6-241-207-209-60:aes-256-cfb:tHxngshzJdvVzVVD7wFIR2wgl0NJszGuyRa+vcqs/OUr6KiCvlcdUWeHlpyg
384vuGuXBWHiFnftXh6BbQGnqdEnNahkuXcT4ZWRwJx2KGkPLWcu1BpuKLy8
tX0A2SQPrngJ5ZxV5q0CjhS4y5Z+m2nqUQ/gBS9V3KYi/zw3DPocTqrJeNnu
Yp+ig312GqtjRe8DDUit9B2Fyyeiru548+/29CxLWTqXUVcyYGa/nD06n1a9
YxSXZvTfS+OKc3fuxNlOS5Dcp1204nr2840y1y02kOUX8Ai44WCDGw6z

View File

@ -16,10 +16,14 @@ directory '/root/.ssh/' do
end end
%w(id_rsa known_hosts).each do |f| %w(id_rsa known_hosts).each do |f|
remote_file "/root/.ssh/#{f}" do encrypted_remote_file "/root/.ssh/#{f}" do
owner 'root' owner 'root'
group 'root' group 'root'
mode '600' mode '600'
source "files/root/.ssh/#{f}"
password ENV['ITAMAE_PASSWORD']
end end
end end