You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/04/21 13:32:35 UTC

[GitHub] [airflow] levysaar opened a new issue #8490: SSH Hook Help- No authentication methods available

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:
users@infra.apache.org



[GitHub] [airflow] boring-cyborg[bot] commented on issue #8490: SSH Hook Help- No authentication methods available

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #8490:
URL: https://github.com/apache/airflow/issues/8490#issuecomment-617182299


   Thanks for opening your first issue here! Be sure to follow the issue template!
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [airflow] eladkal commented on issue #8490: SSH Hook Help- No authentication methods available

Posted by GitBox <gi...@apache.org>.
eladkal commented on issue #8490:
URL: https://github.com/apache/airflow/issues/8490#issuecomment-732967449


   Since this bug seems to be Python 2.7 only I'm closing the issue.


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [airflow] eladkal closed issue #8490: SSH Hook Help- No authentication methods available

Posted by GitBox <gi...@apache.org>.
eladkal closed issue #8490:
URL: https://github.com/apache/airflow/issues/8490


   


----------------------------------------------------------------
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:
users@infra.apache.org