• you can script out the linked server definition in ssms

    'server objects' -> 'linked servers'.

    you need to edit the scripts to insert the correct passwords