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
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Permission denied (publickey). error obtaining for passwordless SSH from Unix to windows

 
SOLVED
Go to solution
laiju.c.babu
Regular Advisor

Permission denied (publickey). error obtaining for passwordless SSH from Unix to windows

Hi Team,

 

While i am doing a passwordless ssh from hp to windows machine i am getting the error message  below

 

$ sftp q.edw.sftp@<windows server ip>
Permission denied (publickey).
Connection closed
$

I am attaching the output of sftp -vvv .

 

This connection was working till yesterday. Could you please help me to srot out this.

 

Regards

 

Laiju.C.Babu
2 REPLIES
Matti_Kurkela
Honored Contributor
Solution

Re: Permission denied (publickey). error obtaining for passwordless SSH from Unix to windows

The remote host is configured to accept SSH key authentication only, so the system won't even ask for a password.

 

Your system is trying to use the SSH DSA key in /u09/gdf/gdfdev/.ssh/id_dsa, but the remote host did not accept that key for some reason.

 

The only way to find out why the key was not accepted is to contact the administrator of the remote host and have him check the logs of the SSH server. If the SSH server is on a Windows host, this usually means checking the Windows Event Viewer, but some Windows SSH server implementations might use a separate log file of their own.

 

The failure reason is usually very clearly described in the SSH server log messages. But it is not sent to the client at all, because at this point, the client is not authenticated and might be an intruder. If you find a suspicious person picking the lock of your front door, you probably won't want to give him any clues about how to be more successful in lockpicking.

 

MK
laiju.c.babu
Regular Advisor

Re: Permission denied (publickey). error obtaining for passwordless SSH from Unix to windows

Hi MK,

 

The issue  was with the  windows server Some permission they have to setup . Now the issue was resolved.  Thanks a lot  for your effort on this.

 

Regards

Laiju.C.Babu