View Single Post

  #1 (permalink)  
Old 05-20-2008, 05:19 PM
kumarat9pm kumarat9pm is offline
Junior Member
User
 
Join Date: Jun 2007
My distro: RedHat Enterprise linux
Posts: 3
Rep Power: 0
kumarat9pm is on a distinguished road
Exclamation ssh with out password

Hi experts,
I am using RHEL5 i am facing a problem with SSH
directly coming to problem i want to login to a server by using SSH with out password, suppose there is are two systems say client1 and server1 in which i am having a user called gen1 in boot these systems
i did following steps for this problem
first we have to create public and private keys for this porcedure so i did as below

ssh-keygen -t dsa
i used -t option to specify type of encryption ie. it is rsa(for sshv1) or dsa(for sshv2)
so here the keys will be generated and it will ask for pass prase to protect the keys so here i pressed enter so that it will not prompt for passprase when i am loggin in to server 1 through client1
in ~/.ssh/ folder we will get 2 files one is id_dsa(which is a private key) and id_dsa.pub(which is a public key)
we have to copy id_dsa.pub to the server user's .ssh folder which is located in his home directory so i did this one by follwing command

scp .ssh/id_dsa.pub gen1@server1:~/.ssh/authorized_keys
i did this one too then when i am trying to login to server it still asking me passwrod
so i got some dought and tried the same thing for root
for root its working fine ie i can login to server1 from client1 as root with out password
i tryed to create some users and tryed the same thing but no use
plz help me in this regard guys it very urgent.
thanks in advance
Surendra
Reply With Quote