levysaar opened a new issue #8490:
URL: https://github.com/apache/airflow/issues/8490
Hey friends,
This is more of a help request rather than an issue/bug.
We try to migrate our airflow from 1.8 to 1.10, but we seem to have issues
with configuring SSH connections.
I created the exact same connection settings from the 1.8 to 1.10
on 1.8 we had only the host and username configured and it worked flawlessly
but now on 1.10, when I use the exact same connection I get the following
error:
`[2020-04-21 00:53:14,229] {taskinstance.py:1128} ERROR - SSH operator
error: No authentication methods available
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/airflow/models/taskinstance.py",
line 966, in _run_raw_task
result = task_copy.execute(context=context)
File
"/usr/lib/python2.7/site-packages/airflow/contrib/operators/ssh_operator.py",
line 177, in execute
raise AirflowException("SSH operator error: {0}".format(str(e)))
AirflowException: SSH operator error: No authentication methods available`
The DAG itself is a small test DAG like the example here:
`import airflow
from airflow import DAG
from airflow.contrib.hooks.ssh_hook import SSHHook
from airflow.contrib.operators.ssh_operator import SSHOperator
default_args = { ... }
dag = DAG(
'test', #dag_id
default_args=default_args,
description='A test dag',
schedule_interval='0 1 * * *'
)
sshHook = SSHHook(ssh_conn_id='my-connection-id')
ssh_test = SSHOperator(
task_id="ssh_test",
command="/home/remote_ssh_test.bash {{ ds }} ",
ssh_hook=sshHook,
dag=dag
)
`
Since I saw in the code that the new version now using Paramiko,
I've tried playing with the extra variables in the connection, but nothing
seems to work,
I hope someone might be able to help me with even the smallest
hint/suggestion
Thank you very much,
Saar
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]