Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update faq.md #5385

Merged
merged 1 commit into from
Feb 19, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 1 addition & 30 deletions docs/5.0/docs/user-guide/devbox/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,33 +114,4 @@ Alternatively, you could change your application's port.

## 9. How to Change the Default User to Root in Devbox

If you want to connect to Devbox as the root user when opening a local editor, please follow these steps. First, ensure
your Devbox can connect properly using the default configuration. Open the file `~/.ssh/sealos/devbox_config` on your
local machine. If you are uncertain about the file's location, please refer to Question 2.

Locate the configuration that you wish to modify to use the root user, for example:

```config
Host usw.sailos.io_ns-rqtny6y6_devbox1234
HostName usw.sailos.io
User devbox
Port 40911
IdentityFile ~/.ssh/sealos/usw.sailos.io_ns-rqtny6y6_devbox1234
IdentitiesOnly yes
StrictHostKeyChecking no
```

Change the `User` value to root, as follows:

```config
Host usw.sailos.io_ns-rqtny6y6_devbox1234
HostName usw.sailos.io
User root
Port 40911
IdentityFile ~/.ssh/sealos/usw.sailos.io_ns-rqtny6y6_devbox1234
IdentitiesOnly yes
StrictHostKeyChecking no
```

After saving the changes, exit the local editor connected to Devbox and then reopen the editor. You should now be
connected to Devbox as the root user.
Run 'sudo su' in the terminal to switch to the root user.