1833269 Members
2730 Online
110051 Solutions
New Discussion

Re: Passwordless SSH

 
Victor Burguillos_4
Frequent Advisor

Passwordless SSH

Hi Mates!

I need configure Passwordless ssh in mi HPUX enviroment but I don't found any documentation, please anybody know when I found some manual about this???
7 REPLIES 7
Oviwan
Honored Contributor

Re: Passwordless SSH

hey

rsh would be "passwordless", you can configure it through .rhosts files

regards
Steven Schweda
Honored Contributor

Re: Passwordless SSH

A forum search for "ssh" in the HP-UX section
should find all kinds of previous threads on
this topic. Add "ssh-keygen" to limit the
list. "man ssh" and "man ssh-keygen" could
be useful, too.
Oviwan
Honored Contributor

Re: Passwordless SSH

or google "passwordless ssh" you will find many sites.
Tim Nelson
Honored Contributor

Re: Passwordless SSH

a 2second search pulls up http://www.openssh.org/

Anyway.

Install HP's Secure Shell from software.hp.com

in users home directory create .ssh directory

ssh-keygen to generate keys ( follow prompts or read man page)

if ssh from serverA to serverB then cut and paste public key from serverA in $HOME/.ssh/authorized_keys on serverB
reverse the process for reverse.

$HOME and $HOME/.ssh must not be writable by group or other.


Steven Schweda
Honored Contributor

Re: Passwordless SSH

And when it doesn't work, the output from
"ssh -v [...]" will probably be helpful.
(Some people recommend more v's, like
"-vvv", but one usually tells me what I need
to know.)
Robert Salter
Respected Contributor

Re: Passwordless SSH

These steps have worked for me. And evidently for a bunch of folks I've forwarded it on to.

Cheers,

bob

-Like bob only spelt backwards-
Time to smoke and joke
Aashique
Honored Contributor

Re: Passwordless SSH

Hi,
Here is the steps to make auto ssh.

First login on Server-A as user "a" and generate a pair of authentication keys.

[a@A]# ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/a/.ssh/id_rsa):
Created directory '/home/a/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/a/.ssh/id_rsa.
Your public key has been saved in /home/a/.ssh/id_rsa.pub.
The key fingerprint is:
3e:4f:05:79:3a:9f:96:7c:3b:ad:e9:58:37:bc:37:e4 a@A


Then login on server-B as user "b" and generate a pair of authentication keys. Do not enter a passphrase:
[b@b]# ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/b/.ssh/id_rsa):
Created directory '/home/b/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/b/.ssh/id_rsa.
Your public key has been saved in /home/b/.ssh/id_rsa.pub.
The key fingerprint is:
3e:4f:05:79:3a:9f:96:7c:3b:ad:e9:58:37:bc:37:e4 b@B

Finally append a@A's new public key to b@B:.ssh/authorized_keys and enter b's password one last time:

[a@A]# cat .ssh/id_rsa.pub | ssh b@B 'cat >> .ssh/authorized_keys'

b@B's password:

From now we can login to server-B as b from server-A as a without password:
[a@A]# ssh b@B hostname
B

Thanks & Regards

Aashique