I don't see how the bashwelcometweak would affect the network (ssh) connection - it's a simple bash function that is executed after an interactive login (i.e. it doesn't affect sftp).

How are you applying the script ?