GuidePedia

0
Keys Authentication:---


Configure SSH server to login with Keys Authentication. It is needed for it to make private key for client and public key for server.
[1]
[2] Start 'puttygen.exe' and click 'Generate' button.
[3] Move mouse untill progress bar will be full.
[4] Set passphrase in 'Key pass-phrase' and 'Confirm pass-phrase'. Next, Click 'Save public key' and 'Save private key' and Save keys with a file name you want.
[5] Open 'public_key' you saved with a text editor.
  Remove first line and last line and replace second line to 'ssh-rsa' and then remove all indention like follows.
"ssh-rsa xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=="
[6] Login with a user and put 'public_key'.
trusty@dlp:~$
mkdir .ssh

trusty@dlp:~$
chmod 700 .ssh

trusty@dlp:~$
cd .ssh

trusty@dlp:~/.ssh$
vi authorized_keys
# Copy and Paste 'public_key'

ssh-rsa xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx==
trusty@dlp:~/.ssh$
chmod 600 authorized_keys

trusty@dlp:~/.ssh$
su -

Password:
root@dlp:~#
vi /etc/ssh/sshd_config
# line 52: uncomment and change to 'no'

PasswordAuthentication
no
root@dlp:~#
initctl restart ssh

ssh start/running, process 2140
[7] Start Putty and select 'private_key' like follows.
[8] If All OK, connect to the server with keys authentication.
[9] Pass-phrase you set is required to input for login. After inputting the correct one, it's possible to login like below.

Post a Comment

Blogger Tips and TricksLatest Tips And TricksBlogger Tricks

Visitors

Cloud Power For You

Website Hosting At Low Price

Contatc

Empire Views
 
Top