HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

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

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?