How connect to remote ip with ssh as normal and root user?

Hello,

I am using gmp to connect to a remote ip (vm) with ssh. Currently I can scan it as a normal user ssh login, but want to log in as root to get more info,

  • Is it possible to log in as root to a remote ip?

  • If I compare the scan results, would root scan have more info comparing to normal user scan?

    print(f":new: Creating New Target: {REMOTE_IP}")
    response = gmp.create_target(
    name=unique_target_name,
    hosts=REMOTE_IP,
    port_list_id=PORT_LIST_ID,
    ssh_credential_id=credential_id
    )
    target_id = response.get(“id”)

thanks

Then drop a root key and login and scan as root, simple as that.

Thanks, I did with root key but I got same report as normal user.
Do you have any suggestions why they both have same scan report?