Operating System - HP-UX
1753947 Members
7545 Online
108811 Solutions
New Discussion юеВ

Re: User-id with chroot prompt for password!

 
Ahmed_58
Regular Advisor

Re: User-id with chroot prompt for password!

Hi Aneesh,
upgrade done as you suggested, and now bove are same level. BUT STILL THE SAME.

Regards,
Ahmed
Steven Schweda
Honored Contributor

Re: User-id with chroot prompt for password!

> debug3: Not a RSA1 key file /home/machnet/.ssh/id_rsa.
> debug2: key_type_from_name: unknown key type '-----BEGIN'

This looks as if you're trying to use a key
file in SSH2 format with OpenSSL software.

> [...] I use the key-gen.

Not a useful description of what you did or
where you did it.

> Please re-generate [...]

> debug1: Next authentication method: publickey
> debug1: Offering public key: /home/machnet/.ssh/id_rsa
> debug1: Authentications that can continue: publickey,password,keyboard-interactive
> debug1: Trying private key: /home/machnet/.ssh/id_dsa
> debug1: Next authentication method: keyboard-interactive

Apparently, someone does not like your (new?)
key data. Knowing nothing about how or where
your keys were generated, it's hard to guess
where you went wrong. It's also not entirely
clear to me what the OS or SSH/SFTP software
is on both of the systems involved.

There are already dozens of "SSH (or SFTP)
doesn't work" threads in this forum. You
might do a search, and then read through some
of them.


> In most cases this is file/directory
> permissions.

> Most of the time it would be the permission
> issue.

In my experience, in most cases where the
problem is permissions, some error message
mentions permissions.

> I feel the problem is just because of the
> version mismatch.

The "version mismatch" with what?

Perhaps your keyboard or display is dirty.
Either would seem to be about as likely as a
"version mismatch" to cause a problem like
this.
Ahmed_58
Regular Advisor

Re: User-id with chroot prompt for password!

Hi,

The userid "machnet" I'm using the home directory is linked to another directory:

lrwxr-xr-x 1 root sys 22 Jul 15 09:50 machnet -> /appl/rate/DanNet/home

And that directory has permission:
drwxrwxrwx 17 machnet users 16384 Jul 20 14:22 home

And in that directory .ssh directory has permission:
drwx------ 2 machnet users 8192 Jul 20 11:03 .ssh

And in .ssh permissions for key...:
-rw-r--r-- 1 machnet users 1013 Jul 20 13:23 authorized_keys

hope all permissions are clear.
Ahmed
OldSchool
Honored Contributor

Re: User-id with chroot prompt for password!

ONE:

"And that directory has permission:
drwxrwxrwx 17 machnet users 16384 Jul 20 14:22 home"


NO...755 there, as noted above. If you can't set it that way, look at

"StrictModes no" in the sshd_config file. That will loosen the requirement, but reduces security.



TWO:
If you're still getting this:

debug2: key_type_from_name: unknown key type '-----END' debug2: key_type_from_name: unknown key type '-----BEGIN'

then you still have an issue with the keys or whatever created them.
Ahmed_58
Regular Advisor

Re: User-id with chroot prompt for password!

Thanks to all,....
finally I manage to solve it, I remove the link directory and use the directory need for files to transfer to as a home directory.

As most of you mention it is to do with permission, hope the debuging be improve to show this kind of errors.

Regards,
Ahmed