code: def cmd_connect(node, cmd_name, node_info):
      
      # FUTURE: call function to check for custom connection-info
      conn_info = "Defaults"
      conf_mess = ("\r{0}{1} TO{2} {3} using {5}{4}{2} - Confirm [y/N]: ".
                   format(C_STAT[cmd_name.upper()], cmd_name.upper(), C_NORM,
                          node_info, conn_info, C_HEAD2))
      cmd_result = None
      if input_yn(conf_mess):
          exec_mess = ("\r{0}CONNECTING TO{1} {2} using {4}{3}{1}: ".
                       format(C_STAT[cmd_name.upper()], C_NORM, node_info,
                              conn_info, C_HEAD2))
          ui_erase_ln()
          ui_print(exec_mess)
          (ssh_user, ssh_key) = ssh_get_info(node)
          if ssh_user:
              ssh_cmd = "ssh {0}{1}@{2}".format(ssh_key, ssh_user,
                                                node.public_ips)
          else:
              ssh_cmd = "ssh {0}{1}".format(ssh_key, node.public_ips)
          print("\n")
          ui_print("\033[?25h")  # cursor on
          subprocess.call(ssh_cmd, shell=True)
          ui_print("\033[?25l")  # cursor off
          print()
          cmd_result = True
      else:
          ui_print_suffix("Command Aborted")
          sleep(0.75)
      return cmd_result
docs: Connect to node.