You can create a credentials record for the account that you plan to use to connect to a Linux sever or VM running Linux OS.
To create a new credentials record with a user name and password for a Linux server:
- From the main menu, select Manage Credentials.
- Click Add > Linux account.
- In the Username field, enter a user name for the account that you plan to add.
- In the Password field, enter a password for the account that you want to add. To view the entered password, click and hold the eye icon on the right of the field.
- In the SSH port field, specify the SSH port over which you want to connect to a Linux server. By default, port 22 is used.
- If you specify data for a non-root account that does not have root permissions on a Linux server, you can use the Non-root account section to grant sudo rights to this account.
- To provide a non-root user with root account privileges, select the Elevate specified account to root check box.
- To add the user account to sudoers file, select the Add account to the sudoers file automatically check box. In the Root password field, enter the password for the root account.
If you do not enable this option, you will have to manually add the user account to the sudoers file.
- In the Description field, enter a description for the created credentials record. As there can be a number of similar account names, for example, Administrator, it is recommended that you provide a meaningful unique description for the credentials record so that you can distinguish it in the list. The description is shown in brackets, following the user name.
In the sudoers file, enable the NOPASSWD:ALL option for the user account that you want to elevate to root and make sure that the user account entry is the last line in the file. Otherwise, jobs addressing a Linux server will fail as sudo will request the password.