English + हिन्दी Version | TechWithAdi
SSH Key Authentication allows secure login without entering passwords.
ssh-keygen -t rsa -b 4096
ssh-copy-id user@server-ip
ssh user@server-ip
sudo nano /etc/ssh/sshd_config PasswordAuthentication no PubkeyAuthentication yes
sudo systemctl restart ssh
SSH is a secure protocol used to connect remote systems.
It uses public/private keys instead of passwords.
They are more secure than passwords.
The key stored on the server.
The secret key stored on the client.
ssh-keygen
Copies public key to a remote server.
Stores allowed public keys.
22
ssh user@server
SSH daemon service.
/etc/ssh/sshd_config
sudo systemctl restart ssh
Disables password login.
Missing or invalid key.
Popular public key algorithm.
Modern secure key algorithm.
Disable root login and password login.
Use keys, updates, firewall, Fail2Ban.
Client proves identity using private key matching server public key.
SSH Key Authentication की मदद से बिना पासवर्ड के सुरक्षित login किया जा सकता है।
ssh-keygen -t rsa -b 4096
ssh-copy-id user@server-ip
ssh user@server-ip
sudo nano /etc/ssh/sshd_config PasswordAuthentication no PubkeyAuthentication yes
sudo systemctl restart ssh
SSH एक secure protocol है जो remote server access करने के लिए उपयोग होता है।
यह password की जगह public/private keys का उपयोग करता है।
क्योंकि यह passwords से अधिक secure होती हैं।
यह key server पर store होती है।
यह secret key client machine पर रहती है।
ssh-keygen
Public key server पर copy करता है।
Allowed public keys store करता है।
22
ssh user@server
SSH daemon service।
/etc/ssh/sshd_config
sudo systemctl restart ssh
Password login disable करता है।
Key missing या invalid होने पर।
Popular public key algorithm।
Modern secure key algorithm।
Root login और password login disable करें।
Keys, updates, firewall और Fail2Ban।
Client private key से identity prove करता है।