SFTPOperator with dynamic user, fails. #46354
Labels
area:core-operators
Operators, Sensors and hooks within Core Airflow
kind:bug
This is a clearly a bug
kind:documentation
needs-triage
label for new issues that we didn't triage yet
What do you see as an issue?
Hey there, This is my first post here so forgive me if this is not the correct place.
I have a unique need of Airflow, I need to integrate SFTP&SSH Operator with a dynamic client, meaning I need that every trigger will also prompt for a user and a password, This means that I can't actually create a permanent Connection in the UI.
I find that using SSHHook is the correct approch.
I created a task that receives the params, and does:
Now I recieve the following error:
socket.gaierror: [Errno -2] Name or service not known
Now when trying to just ssh from the same place that runs this dag, works just fine, also setting up a proper connection with a static user and a ssh_conn_id also works.
Solving the problem
I think the correct way of working with SSHHook should still be implemented.
I tried every docs file but none specify about dynamic connection.
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: