cancel
Showing results for 
Search instead for 
Did you mean: 

SFTP Receiver Channel error

former_member309357
Participant
0 Kudos

Hello Gurus,

     Thank you so much for helping me so far. Came with another issue for your help.

     I am having a strange behavior with SFTP receiver channel.

     We are using private key authentication  method and supplied our SSH key to SFTP Admin to add in their key store.

     When I tried to send the message, we got the below error :

     "UnsupportedOperationException: received authentication request from server which could not be processed: destination= xxxx@xxxx; name= ; instruction=prompt=Password: ".

      And according to the NOTE 1945020, SFTP admin switch off KBI on his SFTP server.

      Below SFTP trace before switching off KBI:

  

debug1: Authentications that can continue: publickey,keyboard-interactive

debug1: Next authentication method: publickey

debug1: Trying private key: ./test_xxx.pem

debug1: read PEM private key done: type RSA

debug1: Authentication succeeded (publickey).


   Below SFTP trace after switching off KBI:

debug1: Authentications that can continue: publickey

debug1: Next authentication method: publickey

     After switching off KBI, when I tried to send the message got the below error:

"MP: exception caught with cause javax.resource.ResoucreException: com.jcraft.JSchException: Auth failed"

     Please give your valuable inputs as it is a long pending issue.

     Thanks a lot in advance.

Thanks

Ravi

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member309357
Participant
0 Kudos

Hi All,

    When I am trying SFTPing from OS level, getting the below error :

"Permission denied (publickey).

Couldn't read packet: Connection reset by peer".

    Please help.

Thanks

Ravi

Former Member
0 Kudos

You need to maintain the public key of your PI server onto the SFTP server.

BR,

Diptee

suman_saha
Contributor
0 Kudos

Hi,

It seems your PI have the private key and the respective public key is not maintained properly in SFTP server.

"You'll need to ask the system administrator to add your public key to the authorized_keys file for the account, or to reenable password authentication for you in sshd_config."

Source: ssh - Does the SFTP server accept passwords at all? - Unix & Linux Stack Exchange

Suman

former_member309357
Participant
0 Kudos

Hi Deepti,

    PI server public key is added onto SFTP Server's key store.

Thanks

Ravi

former_member309357
Participant
0 Kudos

Hi Suman,

    PI have the private key and the corresponding public key is shared and added in SFTP key store.

    After KBI is turned off in SFTP Server. Now I am getting the error

    "exception caught with cause javax.resource.ResourceException: com.jcraft.jsch.JSchException: Auth failed" for both password and private key authentication methods.

    Kindly suggest.

Thanks

Ravi

azharshaikh
Active Contributor
0 Kudos

Hi Ravi,

Also check the steps mentioned in following:

Regards,

Azhar

Former Member
0 Kudos

Hello,

can you check this thread

BR,

Diptee