Jann,
You need to go to the TREX host and run the TREXAdmin.sh.
Under connectivity tab, you need to check the connection,check for the user account corrent and repair the connection.
I presume, the registered program is incorrect in RFC destination when compared to its in TREX or the password for the user account to connect to SAP is wrong/locked.
Post us what you see there.