The solution to avoid these errors is to disable .profile and ~/.bashrc execution in the login shell command:
Preferences->Remote Development->Remote Connections->(Select connection and push "Edit")->Advanced->
Use Login shell: selected
Login shell command: /bin/bash --noprofile --norc -l -c '{0}'
[core] repositoryformatversion = 0 filemode = true logallrefupdates = true