Skip to content

Instantly share code, notes, and snippets.

@njujerry
Created April 19, 2017 07:55
Show Gist options
  • Save njujerry/28309f9191e7ae31ee826333ea480af2 to your computer and use it in GitHub Desktop.
Save njujerry/28309f9191e7ae31ee826333ea480af2 to your computer and use it in GitHub Desktop.
SSH只开启证书认证

SSH只开启证书认证

1 进入要登录用户的家目录 2 进入.ssh目录,没有则新建 3 vim authorized_keys 4 将公钥粘贴到此处,一个公钥一行 5 vim /etc/sshd/sshd_config 6 StrictModes no RSAAuthentication yes PubkeyAuthentication yes AuthorizedKeysFile %h/.ssh/authorized_keys PasswordAuthenticaton no

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment