Article 51FHS SSH-KEY not working between laptop and Rasbian?

SSH-KEY not working between laptop and Rasbian?

by
usodiario
from LinuxQuestions.org on (#51FHS)
Hi.

I am testing Raspbian by ssh on local network and internet, but I can't get it to work with SSH-KEY:

Note: I have created a new user first and deleted the pi user and then did the following:

Debianlaptop client:
ssh-keygen -o -t rsa -b 4096
cat ~ / .ssh / id_rsa.pub
Copy ssh-key:
ssh-rsa GBjsdhbcv ... ... H755f client @ debianlaptop

Raspbian:
sudo mkdir ~ / .ssh
sudo chmod 700 ~ / .ssh
sudo nano ~ / .ssh / authorized_keys
Paste ssh-key:
ssh-rsa GBjsdhbcv ... ... H755f client @ debianlaptop
chmod 600 ~ / .ssh / authorized_keys

I'm wrong about something, what am I missing?

Needed:
- make it work with ssh-key
- Ask me for the ssh-key password to be able to enter
- And not with the Raspbian user's sudo password.

Raspbian connects either from the local network or from the internet with the Raspbian user's sudo password.

Thank you.latest?d=yIl2AUoC8zA latest?i=PeQl9l89plo:dDIfk9Am-Kk:F7zBnMy latest?i=PeQl9l89plo:dDIfk9Am-Kk:V_sGLiP latest?d=qj6IDK7rITs latest?i=PeQl9l89plo:dDIfk9Am-Kk:gIN9vFwPeQl9l89plo
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments