VPS google cloud có check fresh ssh được không mấy bác

huyenlinhtranvu

New member
### Google Cloud có thể kiểm tra SSH mới không?

Có, Google Cloud có thể kiểm tra xem khóa SSH có mới không.Điều này được thực hiện bằng cách kiểm tra dấu thời gian của ngày tạo khóa của khóa.Nếu khóa cũ hơn 90 ngày, nó sẽ được coi là cũ và sẽ không được Google Cloud chấp nhận.

Để kiểm tra xem phím SSH của bạn có còn mới không, bạn có thể sử dụng lệnh sau:

`` `
ssh -keygen -l -f ~/.ssh/id_rsa
`` `

Lệnh này sẽ liệt kê tất cả các khóa SSH được lưu trữ trong thư mục nhà của bạn.Cờ `-l` sẽ liệt kê các phím ở định dạng dài, sẽ bao gồm ngày tạo của khóa.

Nếu ngày tạo của khóa SSH của bạn cũ hơn 90 ngày, bạn sẽ cần tạo một khóa mới.Bạn có thể làm điều này bằng cách sử dụng lệnh sau:

`` `
ssh -keygen -t rsa -b 4096 -f ~/.ssh/id_rsa
`` `

Lệnh này sẽ tạo khóa SSH mới với kích thước khóa 4096 bit.Khóa sẽ được lưu trữ trong tệp `~/.ssh/id_rsa`.

Khi bạn đã tạo khóa SSH mới, bạn sẽ cần thêm nó vào tài khoản Google Cloud của mình.Bạn có thể làm điều này bằng cách làm theo các hướng dẫn trong [tài liệu Google Cloud] (https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys).

### hashtags

* #SSH
* #google-Cloud
* #bảo vệ
* #Keys
* #tươi
=======================================
### Can Google Cloud check fresh ssh?

Yes, Google Cloud can check if an SSH key is fresh. This is done by checking the timestamp of the key's creation date. If the key is older than 90 days, it will be considered stale and will not be accepted by Google Cloud.

To check if your SSH key is fresh, you can use the following command:

```
ssh-keygen -l -f ~/.ssh/id_rsa
```

This command will list all of the SSH keys that are stored in your home directory. The `-l` flag will list the keys in long format, which will include the creation date of the key.

If the creation date of your SSH key is older than 90 days, you will need to generate a new key. You can do this by using the following command:

```
ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_rsa
```

This command will generate a new SSH key with a 4096-bit key size. The key will be stored in the file `~/.ssh/id_rsa`.

Once you have generated a new SSH key, you will need to add it to your Google Cloud account. You can do this by following the instructions in the [Google Cloud documentation](https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys).

### Hashtags

* #SSH
* #google-cloud
* #security
* #Keys
* #Fresh
 
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