we have added ssh connection in airflow connections, while testing it we get error like 'Hook SSHHook doesn't implement or inherit test_connection method'
Asked
Active
Viewed 1,223 times
0
-
Airflow version? did you tried to use the connection with SSHOperator? According to the error its seems that SSH connections just don't have the test functionality – Saar Levy Apr 06 '22 at 08:50
-
version 2.2.4. yes I created DAG also, it shows me a different error as follows https://stackoverflow.com/questions/71762341/import-error-dag-airflow-cannot-import-name-serialization – Sundar Apr 06 '22 at 10:02
1 Answers
3
Test button in the UI works only with Hooks that implemented test_connection
. This means that you can not test the connection with the UI and you will have to create some DAG to test it.
In newer airflow versions the button will be disabled for connections/hooks that doesn't support this functionality (See PR)

Elad Kalif
- 14,110
- 2
- 17
- 49