P. 1
(Password Less Login)

(Password Less Login)

|Views: 6|Likes:
Published by intelmaster
password less ssh login method defination
password less ssh login method defination

More info:

Published by: intelmaster on Mar 09, 2013
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/14/2014

pdf

text

original

ASSIGNMENT # 8 (How To Access Remote System Without Password Using SSH

)

If you are routinely using a remote SSH login to a computer, you may wish login without giving password every time to it. Here are few simple steps to make a password less SSH connection for Unix & Linux distributions. The steps are written below, 1. First you must generate an RSA private key on your home computer for this type ssh-keygen -t rsa at command prompt. It may ask you about three options you just hit enter to accept all the default options.

2. Next, copy your public key (as generated in step one) to remote computer. Here replace mylogin and example.com with your username and domain name respectively. It will also ask you password. scp ~/.ssh/id_rsa.pub mylogin@example.com:~/ 3. Now you need to ssh to your account (using your password). ssh mylogin@example.com 4. Now you have to append the public key to your authorized keys file. Here we are creating a .ssh directory first but you may already have this on your remote machine mkdir .ssh cat id_rsa.pub >> .ssh/authorized_keys rm id_rsa.pub 5. Now you have to set the permissions properly for all necessary files and directories: chmod go-w ~ chmod 700 ~/.ssh chmod 600 ~/.ssh/authorized_keys 6. Now, if you have set up everything properly, you should be able to access your remote account through SSH without a password.

SALMAN ARAIN (3749)

HIDAYA

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->