Hi guys,
I'm sure that like several times you have to connect to server and its really very boring to everytime having to enter the password. So the basic concept is to use a to generate a pair of public and private keys and then push your public key to the server and have your private key on your pc!!
This technique the Public/Private Key Cryptography System and send request to and back. So here how we do it:
On Your Pc
=========
1. cd to your home directory
2. ls .ssh/
3. Generate the key pairs
ssh-keygen
4. Copy the public key to the server
scp .ssh/id_rsa.pub youUsername@server.com:
on server
========
Login on your server and do the following
1. ls .ssh/
2. cat id_rsa.pub >> .ssh/authorized_keys
3. rm id_rsa.pub
Hope it works, if it doesn't do leave a comment and explain the problem, remember i'm still a linux newbie
No comments:
Post a Comment