-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathadd_ssh_keys.sh
25 lines (17 loc) · 3.68 KB
/
add_ssh_keys.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
# bash <(curl -s https://raw.githubusercontent.com/RomanTsibii/nodes/main/add_ssh_keys.sh)
echo 'Adds ssh keys'
mkdir -p ~/.ssh
# boyar komp
#echo ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCvxGuWBhQLNLscrVP9CLo/8QLyoctIUnVJQ34DXjrFb7MvA0P9PmeALH1uBl7UldsWkuaXwcr7ASDeDSjGNUuiCjCWcVLDoFnNKbfYivsECgK055sWa3WLJIMSVtgKLGefLaXBqGTH2057f8dXAURtfcJ9siftRqKyUFdm9D9wA793NYFYQJq2Xq667nF0Z4m676yNPaSsDsEKLwR1hFCDot9VtIvdpbvFBcPYNtYvbfMsFUi/Ct1y2UAMBrztmZiU7lLq7aq7mHYkQkIgl5fOb7ystMhZQXYtTvV6PIkWKrjniD4KiDDP4Ay5O27XLB92IXM/lNAvulhEAvraSr// r700@DESKTOP-1C5NRCI >> ~/.ssh/authorized_keys
# roman-noteboot-ubuntu
echo ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDYdj6sGiUsX9MG77gLlOfmv9ea1HG2kIkJpdFxprRSMUoVmWEBa4PaTYqHzRgb7Hf1XegJo5qeZ6zrR/jeSDxmqI4oCLhLQz3N6+oTpGD2KjlJYn2artpiIUQlQA4NBWD+jfqTBlbe2/s9xFzEynrr364QSDelyYdfHMtjaHtyK6oixat2lT/mJW1rlvorzp866IfbwV9KgvZqfHcHhYGwX78X8iYml07LxkujVdeRA+58yVOiPArsgRsgzwG5qZ9DE+T+bE2GzCivHcNsuh2laHcSAxHaLKV45VOUBcj8zjetpjRu9fSSImsjGtP2/PKB37H0QQZwOp7ZJ/TuimqJ6/NzEi6R08ZVnPCiJ/G+Sq9+E4f5TqFA6MZO1YtfF2qV46lFpQu843aBogzUnujWnSQcqeCQpLLIcea7DHHgEw3iXuJ7YtsT4zj1jMcuO8af4yP3RkjIRTAboET+dad+gcw0rSuqZEi9gLvRqj1IujMsFZyjzWU6MpMuOg9laJU= noteboot_dell@localhost >> ~/.ssh/authorized_keys
# roman-ubuntu@server-main
echo ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDRQQPpkvAkJVc8gBpgtQbH1LLQbg2RSI9vv9ZhPCamzZZv+AP0JXbBYhWIqUn/Wiw+XyGKRH827/NCPdo4UITdRfuAqyD8+9CtlVk1OXRsG1Q8gqCjnNrSPR1HFxtBLehz0xko18fJB2n9tqH9AopZvGBelXl69iybn0Jak36U6pdOPvmuLckvGoIrF4IKusx0H+lr80yZeV5IWJQgYsElFoLo3daAZFYyAdvaD7q4NN9F6IqgaD9hH3/msqYXe77/XSG4QUZq/VNj/8RQ9LOv9f8RSGhtIX4ayYEBfFzhfxkivyOHMDSPXXq68xJ4JHP0skeZ0RswhhR8EVlFRM55Wjk8qkl7G2LSItQwu/YF1rwpHu6Esx+CDGs5lR9xASFeQQfLHdVE8eImWLDgJQp1j+hf1X37kBXnGUFm5Yg2IJ3Rwf0YA+h6pJWwshV1cnqqrnRrkQHp2uCDYkk+DDUtbR39QRadjIyuDIXTwuKyugeJwg01D1aoR8bFNRFSZrc= ubuntu@ro_server_main >> ~/.ssh/authorized_keys
# roman-windows@server-main
echo ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC8UIJ6AuUFdShNyHKWv5Os/fYeMxp1GfICSWsL3J73/HihPcDuteGxf6M6aDHrklapx5yOgxmfRq561Zf3GtabPoAkSbfZDkreSmmSyfHEz7NkEUIOJE9uUycBRjTHvBAmvMq0jIqClEkMMzYbkuY8rOM2ptVBu50Gd5gb3fTZaQXl1gFlRE1/+hdQccQtKw44szGlFfRa5hKneYVThIFKtrsD6pCdbtswZPgQvxQ7Gm73S3CQTOvfwuZTe/C5PSSUggTaeeKqRBmntZwQ15B9aG04i1fyVutVQhRaohjdb1bHprTuYHxNtMMzwmLlVhDeW1KJCXLfcGGJP3luA309aLMKoKCBp+5vQpiVJ10XjmgvnEeIEA21DOG9nDj/qY1A3usvuYasuc+6U+uz1ocqZtwsYZ3XIOO9+xDapmpYpP/N1yXwq5Yx+B3NsC+AB3wMdrefaQftSiriu9rVFgGonMtXeEwaGmrHLhskfnTgEojpa271fxr4CkNkOvIUTZc= roman@ro_server_main >> ~/.ssh/authorized_keys
# yara-noteboot
#echo ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDBtHi2kz3CNBgpRmwE6VZzYdlyjSLBylO9zuok6OsbN71Y2FJwqqZ/hJQTE0yhgwypnQRUhtRyp1TBb8n/q9EALTgoNdsDaXaPuPyVScyn6hib57WS1izGO4ry6yBXC+qzyVT7tG5ht2n+wmpfmzCkSA9ne0RcNcHWs9MY6k0JSIRp+5ItJW9/LQYPz46m+nVRuYKHOkAAGnouwSRkWXgyDuihFKZrwetqpupfvuxy0Ik5Eg9TadoC1oa0c3/oIgEtX8/ChYMuyNOTXhlrQM0aPpSBsfRWMNySBpp/zKEn2D6rvqzuUXyTDm3mapnDLLWdTnmyRgltQ/u78bD4BtOF0y9BJzCIjtyPla6mcF2qyURYcvmR1FDtLhLGI0FLdUw5wHZ867UDOUtz/A4uO0VtvO+HhHy+e6205Qq/3oWPSsoEplcvInCFb/i1pVJITqTixPywPUs3TE0qXztlLmUDcEQTZFYPjiOwjZLqSOpbmDZNGDPlnu7SwbRycM3/UGE= Яруся@DESKTOP-R87AIEM >> ~/.ssh/authorized_keys
# boyar-noteboot
#echo ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCdCro/cORMBj3xccPe2jiLSGs8iQhLzrfRzLwOwUEvMhPWsCHl4Buri/xU3Psg8S/EofeMg1CKDj+rFgH8YbGBYosAdefTvJMaX1jazMcQHW6MqdSi4Dj60yGptq3wQ5Qo/N7I5nJve7AyrmCxrNsqoLQYBjcYH+WTjrfjr6gxHVBtRa4Shed/DBGxuImZGOFxxFGtNVXrUQLqIrl6OfpNEazYIDDkssg/XklkmMyJluZ5Ew6zR4owNRb/eL/5SOFFmma3tsDZrzyqxSnILjRm93VE540WGmVjCLGSRPODMqNNNGI3RW53tzHOFGpYxwH13AiK2gJI7ZEB2RoLFLPjbrFkW6a/7PCrg/D71+SnRe/6akFH0fDLL1i5soEdk0qZGp1LFRVM2uwhWw1+Fx/lr9Kp8s+3PH9xSgOAa9g1Fqz62HtFRGrWdeN0rZbqjHfgd/96yCKRifcg9TzAc4HL+PAw81vZjWg2nGbSFejQI/DpWDawALlL5TtKAhaby10= bohdan@DESKTOP-G4LPBA8 >> ~/.ssh/authorized_keys
chmod -R go= ~/.ssh