vagrant ssh doesn't connect using login shell?
Doesn't look like the contents of the vagrant user's .profile file are executed (ubuntu flavour), just .bashrc. My understanding is that vagrant ssh would connect using a login shell? Nor does .bash_profile get executed if I add one and logout/login. Same issue if I copy the output from vagrant ssh-config into my ~/.ssh/config file and attempt to connect that way.
I'm not seeing this behavior. It seems to be working for me.
The Vagrantfile in my nyu-devops/lab-flask-rest repo is redirecting commands to ~/.profile and they are being executed when I vagrant ssh. I'm not sure why you are not seeing this same behavior. I see this same behavior for both the ubuntu and debian images.
You might want to clone my repo and see for yourself. When you vagrant ssh the Python virtual environment is activated which is the last line of the ~/.profile.