1753830 Members
9752 Online
108806 Solutions
New Discussion юеВ

Re: passwd less login

 
SOLVED
Go to solution
kvsheejith
Advisor

passwd less login

How to enable passwdless login in ssh or rsh between two machines.

OS is Hp-ux 11.11

I have tried adding hostname in hosts.equiv, hosts.allow and .rhosts

but it is not working.

What are the steps to do it?
8 REPLIES 8
Dennis Handly
Acclaimed Contributor

Re: passwd less login

For HP-UX, you use rlogin or remsh, not rsh.
You just add the source machine to ~/.rhosts and make sure the permission is 600.
Note: Using ssh is much more secure.
Horia Chirculescu
Honored Contributor

Re: passwd less login

Hello,

For ssh, you should create public and private dsa keys using 'ssh-key-gen -t dsa' on local-host. Then scp the generated public key (.pub) to the remote host. This key must be appended to ~/.ssh/authorized_keys file

If you need also access without password from the other host to the first one, you should repeat the procedure inverting the machines.

Best regards,
Horia.
Best regards from Romania,
Horia.
Chandrahasa s
Valued Contributor
Solution

Re: passwd less login

Hi,
Find solution,
Here we want to do SSH login and SCP form server A to Server B

Server A side
├в ┬в Login with user id and password
├в ┬в Create a directory named .ssh
├в ┬в Run the command for generating the public key $ssh-keygen ├в t dsa ├в f .ssh/id_dsa
├в ┬в This command will generate id_dsa file under .ssh
├в ┬в In server B create directory .ssh user home directory.
├в ┬в Copy id_dsa file from server A to this directory
├в ┬в $cat id_dsa >.ssh/authorized_keys
├в ┬в Change permission of authorized_keys permission to 700.
├в ┬в Now try scp from server A to B first time it will ask connecting presently select yes.

**Keep assigning points as it will encourage others to join the forum.
Anshumali
Esteemed Contributor

Re: passwd less login

Thanks to Senthil for sharing it. I still use that as a reference.
Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
Anshumali
Esteemed Contributor

Re: passwd less login

Ah...forgot to mention..refer the attachment.
Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
kvsheejith
Advisor

Re: passwd less login

Thanks for the response. I will try this and update.
Chandrahasa s
Valued Contributor

Re: passwd less login

Hi ,
I am attaching the procedure hope it will be much clear.


Chandra
kvsheejith
Advisor

Re: passwd less login

Hi,

I am bit confuse. I will explain my scenario.

I have one Linux server [rhel 5]as well as 12 HP-ux machines and 14 sun machines. From linux server and from the other machines i should be able to do password-less SSH in both-ways

how do i configure this?