How to Switch to Root User in PuTTY Automatically

Table of Contents

Switch to Root User in PuTTY Automatically

In PuTTY, after login into a Linux remote system. You need to switch to the root account manually or run command with the sudo prefix.

How to Switch to Root User in PuTTY Automatically

If you want to switch to the root user in PuTTY automatically. Let’s open PuTTY then:

  1. Navigate to the SSH session under Connection category.
  2. Under remote command, type sudo su –
How to Switch to Root User in PuTTY Automatically

After making the change, you need to:

  1. Select the Session option under the Category.
  2. Select a saved session in the saved session list. For example, select the Default Settings session.
  3. Select the Save button in the right side.

If you don’t select the session and click Save. The changes won’t save and the next time when you open a remote connection, everything will be reverted by default.

How to Switch to Root User in PuTTY Automatically

As you can see, this time you don’t need to switch to the root account manually.

How to Switch to Root User in PuTTY Automatically

Leave a Comment

Required fields are marked *