code: def put_file(self, client, source_file):
          
          try:
              file_name = os.path.basename(source_file)
              ipa_utils.put_file(client, source_file, file_name)
          except Exception as error:
              raise IpaCloudException(
                  'Failed copying file, "{0}"; {1}.'.format(
                      source_file, error
                  )
              )
          else:
              return file_name
docs: Put file on instance in default SSH directory.