How to configure SSH Keys for Nessus
-
Updated for 100% automation. Tested on Ubuntu 18.04 and Ubuntu 16.04
-
Thanks for posting this. I know how interesting their instructions are thanks to your adventures yesterday.
-
@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:
-
@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?
-
@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.
-
@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"
-
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?
-
@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.
-
@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
-
@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.