Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Run visudo.

    Code Block
    sudo visudo
  • Find the sudo group entry. It will look like the following:

    Code Block
    %sudo   ALL=(ALL:ALL) ALL
  • Add a no-password rule:

    Code Block
    your_username ALL=(ALL) NOPASSWD:ALL

    If you wish to remove the sudo password requirement for all users:

    Code Block
    %sudo   ALL=(ALL:ALL) NOPASSWD:ALL
  • Exit visudo and save by pressing CTRL+X, then Y, and then ENTER.

Local config file for quick SSH login

  • Create ~/.ssh/config file.

    Code Block
    sudo nano ~/.ssh/config
  • Add entry for server. For example,

    Code Block
    Host openedx-01
      Hostname ece-openedx-01.eng.uwaterloo.ca
      User d24lau
      IdentifyFile ~/.ssh/id_rsa_d24lau_01
  • Exit and save.