Edited to reflect the problem I really wanted to solve:
I need to set up my ruby environment so I can deploy via Capistrano.
export PATH=$HOME/.rbenv/bin:$PATH eval "$(rbenv init -)"
I put these in ~deploy/.profile, but when I ssh in, they aren't being run. Ideas?
I'm running Ubuntu 12.04.
The original question was:
When I ssh into another account at localhost, it doesn't load my .profile. How can I force ssh to load it? I'm running Ubuntu 12.04.