Skip to content

Commit f82e23f

Browse files
authored
updated README to include OpenSSH comments (#161)
1 parent ed1f3fc commit f82e23f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,26 @@ See the detail information about [SSH login without password](http://www.linuxpr
163163
* Change the permissions of `.ssh` to 700
164164
* Change the permissions of `.ssh/authorized_keys2` to 640
165165

166+
### If you are using OpenSSH
167+
If you are currently using OpenSSH and are getting the following error:
168+
169+
```bash
170+
ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey]
171+
```
172+
173+
Make sure that your key algorithm of choice is supported.
174+
On Ubuntu 20.04 or later you must explicitly allow the use of the ssh-rsa algorithm. Add the following line to your OpenSSH daemon file (which is either `/etc/ssh/sshd_config` or a drop-in file under
175+
`/etc/ssh/sshd_config.d/`):
176+
177+
```
178+
CASignatureAlgorithms +ssh-rsa
179+
```
180+
181+
Alternatively, `ed25519` keys are accepted by default in OpenSSH. You could use this instead of rsa if needed:
182+
```bash
183+
ssh-keygen -t ed25519 -a 200 -C "[email protected]"
184+
```
185+
166186
### Example
167187

168188
#### Executing remote ssh commands using password

0 commit comments

Comments
 (0)