Module Import alias Import alias Import alias Import alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str ImportFrom alias Expr Call AttributeLoad NameLoad attr ImportFrom alias FunctionDef arguments args NameParam defaults body Expr Str Print Str While NameLoad body Assign NameStore Call NameLoad Str If CompareEq Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr BinOpMod Str NameLoad attr Return BoolOpOr NameLoad NameLoad orelse If CompareEq Call AttributeLoad NameLoad attr Str body Return NameLoad orelse Print Str Continue decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If Call AttributeLoad AttributeLoad NameLoad attr attr Str body TryExcept body Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Str For NameStore Call NameLoad NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword NameLoad Return NameLoad handlers ExceptHandler type TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr name NameStore body If BoolOpAnd Call NameLoad NameLoad Str BoolOpOr CompareIn Str AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr body Return Call NameLoad NameLoad ExceptHandler type TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr name NameStore body Print NameLoad Return NameLoad decorator_list Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore NameLoad body Print BinOpMod Str NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Print BinOpMod Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Str If CompareIs NameLoad NameLoad body Print Str Print orelse If CompareIs NameLoad NameLoad body Print Str Print orelse Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str Print Str Print
N/A N/A os N/A paramiko N/A socket N/A sys N/A N/A N/A N/A sys path append /usr/local/www N/A N/A N/A N/A sys path append /usr/local/www/freenasUI N/A N/A N/A N/A os environ setdefault DJANGO_SETTINGS_MODULE freenasUI.settings django.db.models.loading cache N/A N/A N/A cache get_apps freenasUI.storage.models Replication fixkey N/A N/A ip N/A N/A N/A Return a host key or False N/A My idea of what the remote hostkey should be is wrong. N/A True N/A N/A ret N/A raw_input Would you like me to fix this? (y/n):  N/A N/A N/A N/A ret lower y N/A N/A rep N/A N/A N/A N/A os popen N/A ssh-keyscan %s 2> /dev/null ip read N/A N/A rep False N/A N/A N/A N/A N/A ret lower n N/A N/A False N/A N/A Please choose either y or n. N/A N/A check_ssh N/A N/A ip port user key_file retries N/A 1 N/A N/A Returns True if ssh works properly for the passed in parameters.
    Returns False if ssh fails and ssh-keyscan cannot get the remote host key
    or if the user chooses to not let the script try to fetch the
    correct host key or if there are ssh errors that are unrelated
    to the host keys being wrong.  For instance the IP is unreachable.
    Return a host key if ssh fails due to the host key being wrong
    but ssh-keyscan is able to get the correct key
     N/A ssh N/A N/A paramiko SSHClient N/A N/A N/A N/A os path isfile /etc/ssh/ssh_known_hosts N/A N/A N/A N/A N/A N/A ssh load_system_host_keys /etc/ssh/ssh_known_hosts N/A N/A N/A N/A N/A paramiko hostkeys InvalidHostKey N/A N/A N/A N/A os unlink /etc/ssh/ssh_known_hosts N/A x N/A range retries N/A N/A N/A N/A N/A N/A ssh connect ip port username user key_filename key_file N/A True N/A N/A N/A N/A N/A paramiko BadHostKeyException N/A paramiko SSHException N/A e N/A N/A N/A N/A hasattr e message N/A N/A not found in known_hosts N/A e message N/A does not match! N/A e message N/A N/A N/A fixkey ip N/A N/A N/A N/A paramiko AuthenticationException N/A paramiko SSHException N/A socket error N/A e N/A N/A e N/A False N/A N/A replication_tasks N/A N/A N/A Replication objects all N/A replication replication_tasks N/A N/A N/A Replication task: %s replication N/A N/A N/A replication repl_enabled N/A N/A N/A %s replication not enabled replication N/A remote N/A N/A N/A N/A replication repl_remote ssh_remote_hostname __str__ N/A remote_port N/A N/A replication repl_remote ssh_remote_port N/A N/A N/A replication repl_remote ssh_remote_dedicateduser_enabled N/A N/A user N/A N/A replication repl_remote ssh_remote_dedicateduser N/A N/A user root N/A ret N/A check_ssh remote remote_port user /data/ssh/replication N/A N/A ret True N/A N/A Status: OK N/A N/A N/A N/A ret False N/A N/A Status: Failed N/A N/A N/A N/A N/A replication repl_remote ssh_remote_hostkey ret N/A N/A N/A N/A replication repl_remote save N/A N/A N/A os system service ix-sshd start N/A Status: Hostkeys fixed N/A