Skip to content

Commit b610586

Browse files
committed
ssh to server post update
1 parent 231aaf1 commit b610586

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

source/_posts/SSH-to-server-without-password.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: SSH to server without password
33
date: 2021-09-15 03:26:00
4-
tags: [ssh, without password, authorized_keys]
4+
tags: [ssh, without password, authorized_keys, PubkeyAuthentication]
55
---
66

77
## The requirement to ssh to server without password
@@ -32,6 +32,12 @@ To ssh without password, you must meet the condition:
3232
echo "${public key content}" >> .ssh/authorized_keys
3333
```
3434

35+
1. Make sure the sshd setting allow publickey authentication
36+
37+
```bash
38+
PubkeyAuthentication yes
39+
```
40+
3541
1. Verify ssh without password
3642

3743
```bash

0 commit comments

Comments
 (0)