I have a Logstash server I need to run commands in through Cloud Composer which uses Airflow. I am using the SH Operator. I have made the SSH connection and added my RSA Private Key to the extras field. I've tried to connect while having a username entered and while not having a username entered. Everytime, after connecting, I get the error: "Error: SSH Operator Error: No authentication methods available." I can use this RSA key to connect through Putty. I can PING the server as well. There is no password for this server - only the keys. SSHOperator Code:
t1 =SSHOperator(
task_id = 'SSHOperator',
ssh_hook=sshHook,
do_xcom_push=True,
command='ls /logstash/scripts',
dag=dag
)
SSH Connection: ssh connection image