from typing import Dict


def get_project_config_from_user() -> Dict:
    """
    Ask the user for the information for the project config.

    Returns: A dictionary with the config for the project, including local_dir, target, remote_dir, and port.

    """
    local_dir = input('Path to code_sync on this local machine: ')
    target = input('Destination machine (name of ssh config entry): ')
    remote_dir = input('Path on the destination machine to sync: ')
    port = int(input('Port number to use (default 22): ') or "22")
    project_details = {
        'local_dir': local_dir,
        'target': target,
        'remote_dir': remote_dir,
        'port': port,
    }
    return project_details