Securing SSH - Hsanokklis/2023-2024-Tech-journal GitHub Wiki

Go to vi /etc/ssh/sshd_config
- find PermitRootLogin and change yes to no

Changed to no

TROUBLESHOOTING: to actually have any failed log in attempts I had to sign out of the hannelore directory and try log in in as root a few times. That way I actually had some failed log in attempts in the logs

Deliverable 2. Figure out how to determine what root’s uid (user id) is. What is it and based on the logs, what logic is used to prevent root's login?
The roots User ID is zero. I would assume that preventing the roots login means that any user with the UID of zero will be returned as false and this blocked from logging in.
Deliverable 3. H̷̭̩͖̦̲̭̭͊̏̿͠͝a̷̦͋ͅr̶̹̖̼͛̽̄̄̍̕ŗ̴̼̮͉̫̭̈͜ỹ̵͋͐͛͆͜ ̴̦̺̳̻̞͋͐̽͒p̶̧̛̘̭̣̥̹̏͒͆͗͐͒͜͠õ̵͖͑̕͠t̸͇̯̝͈̳̠̃̍̃̓̎̽͝͝t̶̢̠̥̳̺̣̹̻̔̀̓̾̎ë̴̼̘̖̺̩̭̬̩̜̯́̉͊r̸̙͔͍̬̫̻̬̝͑ ̷̨̻̘̝̭̂͌͋́̚Ç̵̱͓̜͚̞͍͚̓̇̾͋̑̀̍̃̕̕Ṫ̴̝͔̥͇̣̮͖͍̇̐̊͌ͅF̷̣̣͕̝̗̞͇̞̲̍̀̐͌̉̀͜s̸̥̣̦̍̃͊͌͘͠ ̴͙͉͙̥̩̌̑̒̉̉͊͘͜a̷͔̼̾̇̂̽̄ŕ̷͈͖̐́͠e̷̹͙̭͇̱͂̓̈́͐̍ͅͅ ̵̳̞̮͙̼͌̅̌́̈́f̴̙̥̽̍̎ū̴̝̙̱̹̖͕n̷̛͉̥̊̿̀̅̈̈͆̋̕!̷̢̡̖̖̖̘͙̉̊̏̔͛ ̸̦̟̱͇̉̏͛͊̏̃̕Ḣ̶̦ë̸͎͕͇̼́̅̆̓̒͊̆͌̍͝ȑ̷̡͕̘͉̯̳̭́͛͋̓̆̓́͜͜ͅę̶̨̨̥̼̣̬̟̆͛̂̈̌̓͗͘'̶̮̻̠̮̘̍̒̆̊͠͠s̸̨̧̹̟͗̈́͐̚͝ ̶̭̙͕̘̮̹͓͍̙͐̉̏̑͐͛̐y̴̜̓̏̍̅͗̚͘ͅo̷̢̧̢͔̼͉͈̪̬͒͆̽̀̆̔͘u̴̢̢͉̼̹̦̪̪̦̤̐̈́͝ŕ̴̲͓̫͖͍̟̫̀ ̸̛̛̻̲̂̏̒̊̅f̸̧̢̱͎̳͓͕̈́̂̾̈́l̵̻̲̱̰͝ȧ̶̛̗͆͛̈̔g̷̮̼̊͗̏̂̄̂̋͘:̶̛̙̗̞̋̐̈́̔ ̸̬̯̣̐̊͐͑É̵͔̫͕̿͒͂̚̕͘͝x̷̛̺̺̠̭̳̮̊̃̑̉̈́͝p̸̡͕͚͕̱̥̤̤̝̅́͑͝ẻ̵̪̻̼͆̚ͅl̷͎̝͕͉̖͓̩̦̑͝ͅl̷̢̡̢̢̛͉̝̩̬̓͌͒̎̐͛ǐ̴̢̬̹͎͇̝̇̋͛̇̈͝͝a̷̯̫̲͚̯̠̖͊̊͘r̶̡̰̙͍͆͜m̷̢̡̨̗̠̞̦̬̂͋̈́͗̄̀̚ų̷̧̛̣̲̟͓̮͈̤͖̆̉͂̃́̂̍͋ṡ̸̨̥̺̘̙̠̹̱̮͌͌͊̀̆̈́̚͠ͅ