57
Views
6
Comments
Solved
[SFTP] Permission denied (password).
Question
sftp
Service icon
Forge asset by Paulo Ramos
Application Type
Service

Hi,

I'm getting this error when I'm trying to connect to a SFTP server: Permission denied (password). 

I'm sure that user and password I'm using for authentication is right.

What can be the cause for this error?

Thank you.

UserImage.jpg
Julia Ramos
Solution

Hi

We solve this problem by using another component: https://www.outsystems.com/forge/component-overview/6631/sftp-connected 

and changing the Connect action of the component with the code of this issue on stack overflow: https://stackoverflow.com/questions/39071619/cannot-connect-to-mac-using-rencissh/39163024#39163024


UserImage.jpg
Alexandre Yip

Hi Julia,


Can you try connection a to a SFTP  server using a client application?

The OS IP server that is trying to connect to that server must be in the whitelist of that server.


Hope that it helps you





UserImage.jpg
Julia Ramos

Hi Alexandre!

We tried to access directly from the server and it was not working too.

So, we made a change of the username and port and now we're able to connect directly from the outsystems server. 

But, using the component we're receving this error message:


"No suitable authentication method found to complete authentication (gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive)"

2024-03-22 09-17-23
Chandra Vikas Sharma

Hi,

can you please check what SFTP Authentication Methods you passed in components. you need to pass appropriate authentication methods. 

UserImage.jpg
Julia Ramos

Hi Chandra,

How can I pass the authentication method?

The SFTP component, doesn't give me that option.

UserImage.jpg
Alexandre Yip

Hi Julia ,

Te eSpace where you are using that extension is in the Global Deployment Zone?

You could see this in the  Service Center, selecting the eSpace , tab operation


You could face some issues if it is a different Zone, usually these kind of "applications" to access to external "world" are in a different zone to protect the OS application.

In that case you should expose a service with the SFTP methods to be consumed by the OS application.


Hope that it helps you.


 



UserImage.jpg
Julia Ramos
Solution

Hi

We solve this problem by using another component: https://www.outsystems.com/forge/component-overview/6631/sftp-connected 

and changing the Connect action of the component with the code of this issue on stack overflow: https://stackoverflow.com/questions/39071619/cannot-connect-to-mac-using-rencissh/39163024#39163024


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.