nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

ssh with out password

This is a discussion on ssh with out password within the Networking, Firewalls and Security forums, part of the Mastering Servers category; Hi experts, I am using RHEL5 i am facing a problem with SSH directly coming to problem i want to ...


Go Back   nixCraft Linux Forum > Mastering Servers > Networking, Firewalls and Security

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 05-20-2008, 04:19 PM
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
Sponsored Links
  #2 (permalink)  
Old 06-10-2008, 12:45 PM
Junior Member
User
 
Join Date: Oct 2007
My distro: RedHat
Posts: 3
Rep Power: 0
kumardineshwar is on a distinguished road
Default

Hi,

After coping the ssh pub key make sure the file permission is 600 to .ssh dir and its file and also don't forgot to change file owner.

Thanks,
Dinesh
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
HP UX user lock password, change password, password aging rockdalinux HP-UX 0 12-20-2006 02:36 PM


All times are GMT +5.5. The time now is 02:02 AM.


Powered by vBulletin® Version 3.7.2 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36