Tips Hướng dẫn fix lỗi SSH hiện "Bad owner or permissions".

anhson268

New member
### Cách sửa lỗi SSH "Chủ sở hữu xấu hoặc quyền"

SSH là một cách an toàn để truy cập một máy chủ từ xa.Tuy nhiên, bạn có thể gặp phải thông báo lỗi khi cố gắng kết nối với máy chủ từ xa bằng SSH.Thông báo lỗi này thường đọc "chủ sở hữu hoặc quyền xấu".

Có một vài lý do khác nhau tại sao bạn có thể nhận được thông báo lỗi này.Một khả năng là máy chủ SSH không chạy trên máy chủ từ xa.Một khả năng khác là bạn không có quyền chính xác để truy cập vào máy chủ từ xa.

Để khắc phục sự cố này, trước tiên bạn sẽ cần xác định nguyên nhân của lỗi.Để làm điều này, bạn có thể sử dụng các bước sau:

1. ** Kiểm tra xem máy chủ SSH có chạy trên máy chủ từ xa không. ** Bạn có thể thực hiện điều này bằng cách chạy lệnh sau trên máy chủ từ xa:

`` `
SUDO Service SSH Status
`` `

Nếu máy chủ SSH không chạy, bạn có thể khởi động nó bằng cách chạy lệnh sau:

`` `
SUDO Service SSH Start
`` `

2. ** Kiểm tra quyền của bạn để truy cập máy chủ từ xa. ** Bạn có thể thực hiện điều này bằng cách chạy lệnh sau trên máy chủ từ xa:

`` `
ls -l /home/username/.ssh
`` `

Lệnh này sẽ liệt kê các tệp và thư mục trong thư mục `/home/username/.ssh`.Nếu bạn không có quyền chính xác để truy cập thư mục này, bạn sẽ cần thay đổi các quyền.Bạn có thể làm điều này bằng cách chạy lệnh sau:

`` `
sudo Chmod 700 /home/username/.ssh
`` `

3. ** Hãy thử kết nối với máy chủ từ xa một lần nữa. ** Khi bạn đã xác minh rằng máy chủ SSH đang chạy và bạn có quyền chính xác, bạn có thể thử kết nối với máy chủ từ xa.Để làm điều này, hãy sử dụng lệnh sau:

`` `
SSH [email protected]
`` `

Nếu bạn vẫn không thể kết nối với máy chủ từ xa, bạn có thể cần liên hệ với quản trị viên hệ thống để được hỗ trợ.

### 5 hashtag cho bài viết này

* #Ssh
* #SSherrors
* #BadoWNerorPermissions
* #Truy cập từ xa
* #Xử lý sự cố
=======================================
### How to Fix SSH Errors "Bad Owner or Permissions"

SSH is a secure way to access a remote server. However, you may encounter an error message when trying to connect to a remote server using SSH. This error message typically reads "Bad owner or permissions".

There are a few different reasons why you might receive this error message. One possibility is that the SSH server is not running on the remote host. Another possibility is that you do not have the correct permissions to access the remote host.

To troubleshoot this issue, you will need to first determine the cause of the error. To do this, you can use the following steps:

1. **Check if the SSH server is running on the remote host.** You can do this by running the following command on the remote host:

```
sudo service ssh status
```

If the SSH server is not running, you can start it by running the following command:

```
sudo service ssh start
```

2. **Check your permissions to access the remote host.** You can do this by running the following command on the remote host:

```
ls -l /home/username/.ssh
```

This command will list the files and directories in the `/home/username/.ssh` directory. If you do not have the correct permissions to access this directory, you will need to change the permissions. You can do this by running the following command:

```
sudo chmod 700 /home/username/.ssh
```

3. **Try connecting to the remote host again.** Once you have verified that the SSH server is running and that you have the correct permissions, you can try connecting to the remote host again. To do this, use the following command:

```
ssh [email protected]
```

If you are still unable to connect to the remote host, you may need to contact the system administrator for assistance.

### 5 Hashtags for This Article

* #Ssh
* #SSherrors
* #BadoWNerorPermissions
* #Remoteaccess
* #troubleshooting
 
Join Telegram ToolsKiemTrieuDoGroup
Back
Top