Operating System - HP-UX
1748053 Members
4876 Online
108758 Solutions
New Discussion юеВ

Re: Trusted rlogin between HPUX boxes using ssh

 
SOLVED
Go to solution
hp_user_1
Regular Advisor

Trusted rlogin between HPUX boxes using ssh

Hi,

I have a user account that always uses ssh to login to hpux 11i boxes. He wants to do ssh between the boxes without entering his password. I know for rlogin you require an entry either in $HOME/.rhosts file or /etc/hosts.equiv.

What do I need to do in this case.

Points will be awarded...

Thanks
14 REPLIES 14
Steven E. Protter
Exalted Contributor
Solution

Re: Trusted rlogin between HPUX boxes using ssh

Different procedure. I'm attaching a link to a powerpoint on the subject I never got to give at HP World.

www.hpuxconsulting.com/5004.ppt

Also a word doc that is more succint.

SEP

Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Rick Garland
Honored Contributor

Re: Trusted rlogin between HPUX boxes using ssh

There are numerous posts on this subject. I did a search for "ssh logins no password" and many matches - some with attached HOWTOs and some just providing troubleshooting.

As an example, check out this post I found from the search. Has some attachment as well as tutorials.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=859024
CSG Office
Frequent Advisor

Re: Trusted rlogin between HPUX boxes using ssh

Asghar,

The basic procedure is to create an ssh key pair, putlic and private. You will put one key on the server and one key on the client. The advantage over rsh and rlogin is that the session is still encrypted. You would be better off following a howto on this or reading through the man pages.
hp_user_1
Regular Advisor

Re: Trusted rlogin between HPUX boxes using ssh

The requirement is changed a little bit.

I want to login as user1 on server1 and then ssh into server2 as user2 without entering either user1 or user2's password. I also want the reverse of it.

How can I achieve that.

Thanks
Q4you
Regular Advisor

Re: Trusted rlogin between HPUX boxes using ssh

by reading the manual ( LOL, just kidding)
hp_user_1
Regular Advisor

Re: Trusted rlogin between HPUX boxes using ssh

Hello,,, Any help.....
Rick Garland
Honored Contributor

Re: Trusted rlogin between HPUX boxes using ssh

The document attached with a prior post, this will explain how you set up 'keys'.

By generating keys and sharing these keys with the various servers (and for the various users on these servers) you can have the password prompt omitted.

As a simplified example;
Doing an ssh as user1 to server1. Assuming the start is from a Linux desktop system. You will generate keys, public and private, on the Linux system. The public key you will share with server1 for user1. Once this share is comfigured and complete you can ssh login without a passwd from Linux desktop to server1 as user1.

Same concept with user2/server2.

Again, this is a very simplified example. Read the attachment from earlier post by SEP.
Also good tutorials/attachments with the post I put up.

hp_user_1
Regular Advisor

Re: Trusted rlogin between HPUX boxes using ssh

Hi,

I did the setup and it worked for user1:server1 to user1:server2.

What I want now is "user1" from server1 ssh'ing as "user2" into server2 which means:

server1:user1> ssh server2 -l user2

It always prompt me for user2 password which I don't want.

Thanks
Rick Garland
Honored Contributor

Re: Trusted rlogin between HPUX boxes using ssh

When you generated the key for user1, place a copy of this public key for user1 onto the server2 in the user2:$HOME/.ssh directory.