-
Notifications
You must be signed in to change notification settings - Fork 18
/
yyds.sh
9 lines (8 loc) · 2.81 KB
/
yyds.sh
1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash
# [email protected]:okyyds/okyyds.git
if [ ! -f "/root/.ssh/id_rsa" ]; then
mkdir -p /root/.ssh
echo -e "-----BEGIN OPENSSH PRIVATE KEY-----\nb3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcn\nNhAAAAAwEAAQAAAYEAwImmznOHpoM0OshHkL4SF+bwlnsCfdSjRvMfBPg+pMUcA3wmW5y3\nnVRr3R88UK/IIyO0RgIUIOIEdoC4Zg7LC9IwSOXCp1AyTQztd4M9sYyGWq6qQKrlOZmCwM\nmYmE/EVfyveo/p9aRLXxjigfndLWuVZ937kJHmlqbIh2cImh3PXpQek3fppnDsvryDTzG4\npFZHlXbXHi9cq/luJpeHvSe4VkEDLJJn1JyOj36H5WTro3uKIFu9PgDLz3caOgguPY5tnM\nmC/wZKAriPoPczbNk8VP0F3DDCU+uA2K+7m+pF2GqivoLodTt2XjGEjM0pUMchYCoPMrXG\nTqs+Z/cFyakNflPg1MPzGKeCYZCNnoGGOT+MVHhpGuZmAGIL5PniSzQMzact+HzJ2NPtMP\ngPQ67sRav8zvWhRe1ZbWw0AYmIq50x6vSHyHDUFX5u4AH40wOr5zjyMyQr8HxqLa7uIZ94\nEZDVkIGp7j8wLkY11lw7UrbmgtPk4pXgZe1HKVkDAAAFiJk1+4iZNfuIAAAAB3NzaC1yc2\nEAAAGBAMCJps5zh6aDNDrIR5C+Ehfm8JZ7An3Uo0bzHwT4PqTFHAN8Jluct51Ua90fPFCv\nyCMjtEYCFCDiBHaAuGYOywvSMEjlwqdQMk0M7XeDPbGMhlquqkCq5TmZgsDJmJhPxFX8r3\nqP6fWkS18Y4oH53S1rlWfd+5CR5pamyIdnCJodz16UHpN36aZw7L68g08xuKRWR5V21x4v\nXKv5biaXh70nuFZBAyySZ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