ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    How to configure SSH Keys for Nessus

    IT Discussion
    nessus ssh keys
    4
    12
    1.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • IRJI
      IRJ
      last edited by

      Updated for 100% automation. Tested on Ubuntu 18.04 and Ubuntu 16.04

      1 Reply Last reply Reply Quote 1
      • travisdh1T
        travisdh1
        last edited by

        Thanks for posting this. I know how interesting their instructions are thanks to your adventures yesterday.

        IRJI 1 Reply Last reply Reply Quote 1
        • IRJI
          IRJ @travisdh1
          last edited by

          @travisdh1 said in How to configure SSH Keys for Nessus:

          Thanks for posting this. I know how interesting their instructions are thanks to your adventures yesterday.

          You think this would be super important to them. I guess everyone just uses password auth with sudo access :man_shrugging:

          Or maybe they just use windows :man_facepalming:

          DustinB3403D 1 Reply Last reply Reply Quote 1
          • DustinB3403D
            DustinB3403 @IRJ
            last edited by

            @IRJ said in How to configure SSH Keys for Nessus:

            Or maybe they just use windows

            Those licenses aren't that expensive compared to the 15 seconds it takes to setup key access, right?

            IRJI 1 Reply Last reply Reply Quote 0
            • IRJI
              IRJ @DustinB3403
              last edited by

              @DustinB3403 said in How to configure SSH Keys for Nessus:

              @IRJ said in How to configure SSH Keys for Nessus:

              Or maybe they just use windows

              Those licenses aren't that expensive compared to the 15 seconds it takes to setup key access, right?

              Sure, but it took me half a day with terrible documentation.

              I can understand some kb articles that are outdated/broken, but you think account setup would be an extremely important article that is maintained and tested at least quarterly. Whoever wrote that article, did not only have incorrect information, but they seemed to have never made a blog post before.

              Sometimes explanations came before or after the listed command, and some things had no explanations at all. It wasnt even consistent throughout the article.

              DustinB3403D 1 Reply Last reply Reply Quote 1
              • DustinB3403D
                DustinB3403 @IRJ
                last edited by

                @IRJ said in How to configure SSH Keys for Nessus:

                Sure, but it took me half a day with terrible documentation.

                But you also didn't follow the KISS method and blindly followed that bad documentation. Rather than stepping back and saying "there is no f'ing way it's this difficult on linux"

                1 Reply Last reply Reply Quote 0
                • DustinB3403D
                  DustinB3403
                  last edited by

                  Isn't this step redundant?

                  sudo mkdir /home/scan_user/.ssh
                  sudo chown -R scan_user:scan_user /home/scan_user
                  

                  As ssh-keygen will create these directories and set the ownership?

                  IRJI JaredBuschJ 3 Replies Last reply Reply Quote 0
                  • IRJI
                    IRJ @DustinB3403
                    last edited by

                    @DustinB3403 said in How to configure SSH Keys for Nessus:

                    Isn't this step redundant?

                    sudo mkdir /home/scan_user/.ssh
                    sudo chown -R scan_user:scan_user /home/scan_user
                    

                    As ssh-keygen will create these directories and set the ownership?

                    It could be extra steps, but we are not charged per command issued in the terminal 😉

                    Especially since it was scripted.

                    1 Reply Last reply Reply Quote 0
                    • IRJI
                      IRJ @DustinB3403
                      last edited by

                      @DustinB3403 said in How to configure SSH Keys for Nessus:

                      Isn't this step redundant?

                      sudo mkdir /home/scan_user/.ssh
                      

                      I think that one is needed, but you could do it like this without elevating priveleges.

                      sudo -u scan_user mkdir /home/scan_user/.ssh
                      1 Reply Last reply Reply Quote 0
                      • JaredBuschJ
                        JaredBusch @DustinB3403
                        last edited by

                        @DustinB3403 said in How to configure SSH Keys for Nessus:

                        Isn't this step redundant?

                        sudo mkdir /home/scan_user/.ssh
                        sudo chown -R scan_user:scan_user /home/scan_user
                        

                        As ssh-keygen will create these directories and set the ownership?

                        It certainly does on Fedora.

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post