KB: Linux Cmds

 Linux KB:


GREP:

  • grep -rH "<search string>" /<path> --include *.pub
  • grep rH "<search string>" /<path>


JOURNALCTL:


SSH:
Copying SSH pub key between users:
This is just one of a few different ways to do this. I am assuming you've just created your user and it has sudo access.
mkdir /home/<user>/.ssh chmod 700 /home/<user>/.ssh cp /root/.ssh/authorized_keys /home/<user>/.ssh/authorized_keys chmod 600 /home/<user>/.ssh/authorized_keys chown -R <user>:<user> /home/<user>/.ssh

Comments

Popular posts from this blog

KB: Azure ACA Container fails to start (no User Assigned or Delegated Managed Identity found for specified ClientId)

Electron Process Execution Failure with FSLogix

KB:RMM VS DEX (Remote Monitoring Management vs Digital Employee Experience)