Operating System - HP-UX
1753634 Members
5747 Online
108798 Solutions
New Discussion юеВ

SSH connectivity using public key

 
sheevm
Regular Advisor

SSH connectivity using public key

Hi,

I am trying to setup SFTP to our HP server to use the public key to login.

Clinet----Microsoft Server
SSH TECTIA 6.0.11.5

Server----rp8420--HP-UX 11.23--
ssh version---A.05.10.046

I placed the PK received by the client in /home/user/.ssh/authorized_key. Made sure all the permisiion are set to 700.

It is not workinh, still prompting for a password.

Anyone out there has any procedure? Any tips are appreciated.

This is coming from SSH2 TACTIA---Open SSH

Thanks
be good and do good
5 REPLIES 5
Mel Burslan
Honored Contributor

Re: SSH connectivity using public key

There was a recent discussion about non open source ssh implementations. I am not sure how Tectia's sftp client uses the public keys but I have a gut feeling that the public keys it uses, are formatted to encounter a Tectia ssh server on the server side.

On which side did the key pair get created ? Was it on HP rp8420 or was it on Microsoft server ?
________________________________
UNIX because I majored in cryptology...
Steven Schweda
Honored Contributor

Re: SSH connectivity using public key

> There was a recent discussion [...]

And many older ones. A Forum search should
turn up any number of previous threads which
cover SSH key formats and conversions, and
how to get or find the diagnostic messages
which will tell you what's happening.

> I placed the PK [...]

Whose format we can't see...

> Made sure ...

Using commands which we can't see, with
results which we can't see...

> It is not workinh, still prompting for a
> password.

What, exactly, is not working?

As usual, showing actual commands with their
actual output can be more convincing than
vague descriptions and interpretations.

And, as that Forum search should suggest,
many SSH client programs offer a "-v" option,
which is usually a good way to start.
Steven E. Protter
Exalted Contributor

Re: SSH connectivity using public key

Shalom,

Check these:
http://www.hpux.ws/?p=19

Password free:
http://www.hpux.ws/?p=10

The principles should work for commercial ssh2.

I have never seen a reason to pay for tactia when openssh is free and secure.

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
Bill Hassell
Honored Contributor

Re: SSH connectivity using public key

> Made sure all the permisiion are set to 700.

Please don't use 700 (or 777) for data files. Unfortunately there are a lot of bad training materials that encourage 777. The proper permission for the .ssh file set is 600. The 7 turns on the executable bit which can cause problems. Don't use 7-anything unless you know that the file is executable such as a script. Directories need to be executable (ie, 755) but very few files should ever be executable.


Bill Hassell, sysadmin
Suraj K Sankari
Honored Contributor

Re: SSH connectivity using public key

HI,
Check this below link how to configure passwdless ssh step by step.

http://www.mtu.net/~engstrom/ssh-agent.php

Suraj