---
title: "Discussion on \"Centos采用SSH KEY登录\" | Hashnode"
description: "Discussion on \"Centos采用SSH KEY登录\". ​\n1. ssh key的好处?\n如果采用传统密码登录的话，每次登录都会弹出类似这样的警告：\n你可以用这条命令看看到底是哪些人曾经想登门拜访过：\ngrep \"Failed password for invalid user\" /var/log/secure | awk '{print $13}' | sort | uniq -c | sort -nr | more\n\n采用ssh key登录后，首先可以将这些人拒之门外。其次，省的每次都输入一次密码，更加方便。\n\n2. 方法(以root用户为例)\n..."
url: "https://hashnode.com/posts/centosssh-key/626ea338d02237eb3fc7c7c2"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Centos采用SSH KEY登录](https://rockage.hashnode.dev/centosssh-key?utm_source=hashnode&utm_medium=feed)

​ 1. ssh key的好处? 如果采用传统密码登录的话，每次登录都会弹出类似这样的警告： 你可以用这条命令看看到底是哪些人曾经想登门拜访过： grep "Failed password for invalid user" /var/log/secure | awk '{print $13}' | sort | uniq -c | sort -nr | more 采用ssh key登录后，首先可以将这些人拒之门外。其次，省的每次都输入一次密码，更加方便。 2. 方法(以root用户为例) ...

May 1, 2022 · 1 min read · rockage.hashnode.dev  
Read the article

-   [#ssh](https://hashnode.com/tag/ssh)
-   [#linux](https://hashnode.com/tag/linux)

## Written by

[Rockage Young](https://hashnode.com/@rockage)

@rockage

  
[View profile](https://hashnode.com/@rockage)

A Coder Love for Heavy Metal

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
