Return typeįailingResponder object raises AirflowException if no password was configured in the connection get_sudo_pass_responder ( ) ¶Ĭreates a responder for the sudo password prompt. Note: only use this if the SSH connection is configured with a password and not a key. Useful if you execute other ssh commands on the remote host, for example scp and rsync. It replies with the password of the SSH connection. Return typeĬonnection object get_generic_pass_responder ( ) ¶Ĭreates a responder for a generic password prompt. Has a restricted AcceptEnv setting (which is the common default).Ĭreates a Fabric Connection object using the settings in this hook. Protocol itself (which is the default behavior). (export VARNAME=value & mycommand here), instead of trying to submit them through the SSH Inline_ssh_env ( bool) – whether to send environment variables “inline” as prefixes in front of command strings Ssh_conn_id ( Optional) – connection id from airflow Connections It inherits from SSHHook and uses its input arguments for setting This hook allows you to connect to an SSH remote host and run commands on it using the FabricHook ( ssh_conn_id = None, inline_ssh_env = False, * args, ** kwargs ) ¶īases: .ssh.SSHHook Sai_airflow_plugins.hooks ¶ class sai_airflow_hook.
0 Comments
Leave a Reply. |