Fix lỗi Bad owner or permissions trên SSH.

khacduyphamdiep

New member
## Sửa lỗi chủ sở hữu xấu hoặc lỗi quyền trên SSH

SSH là một cách an toàn để truy cập một máy chủ từ xa.Tuy nhiên, đôi khi bạn có thể gặp lỗi "Chủ sở hữu hoặc quyền xấu" khi cố gắng kết nối với máy chủ.Lỗi này có thể xảy ra vì nhiều lý do, nhưng thường là do các quyền không chính xác trên tệp cấu hình SSH.

Để khắc phục lỗi này, bạn sẽ cần thay đổi quyền trên tệp cấu hình SSH.Để làm điều này, hãy làm theo các bước sau:

1. Đăng nhập vào máy chủ với tư cách là người dùng gốc.
2. Điều hướng đến thư mục nơi đặt tệp cấu hình SSH.Điều này thường được đặt tại `/etc/ssh`.
3. Sử dụng lệnh sau để thay đổi quyền trên tệp cấu hình SSH:

`` `
sudo chmod 600 sshd_config
`` `

4. Khởi động lại dịch vụ SSH.

`` `
Dịch vụ SUDO SSHD Khởi động lại
`` `

Khi bạn đã khởi động lại dịch vụ SSH, bạn sẽ có thể kết nối với máy chủ mà không gặp vấn đề gì.

## hashtags

* #SSH
* #Permissions
* #Errors
* #linux
* #NetWorking
=======================================
## Fix Bad Owner or Permissions error on SSH

SSH is a secure way to access a remote server. However, sometimes you may encounter the error "Bad owner or permissions" when trying to connect to a server. This error can occur for a variety of reasons, but it is usually due to incorrect permissions on the SSH configuration file.

To fix this error, you will need to change the permissions on the SSH configuration file. To do this, follow these steps:

1. Log in to the server as root user.
2. Navigate to the directory where the SSH configuration file is located. This is usually located at `/etc/ssh`.
3. Use the following command to change the permissions on the SSH configuration file:

```
sudo chmod 600 sshd_config
```

4. Restart the SSH service.

```
sudo service sshd restart
```

Once you have restarted the SSH service, you should be able to connect to the server without any problems.

## Hashtags

* #SSH
* #Permissions
* #Errors
* #linux
* #NetWorking
 
Join ToolsKiemTrieuDoGroup
Back
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock