Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mina ssh doesn't load bash_profile? #311

Closed
jmuheim opened this issue May 4, 2015 · 4 comments
Closed

Mina ssh doesn't load bash_profile? #311

jmuheim opened this issue May 4, 2015 · 4 comments

Comments

@jmuheim
Copy link

jmuheim commented May 4, 2015

I load in my .bash_profile ruby 2.2 (default is 1.8.7). When normalling ssh'ing, it works, but when doing mina ssh, it doesn't:

$ ssh a4aa2@bellatrix.uberspace.de
You have new mail in folder /home/a4aa2/Maildir.
Last login: Mon May  4 12:39:30 2015 from 212.25.11.95
$ ruby -v
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]
$ exit
logout
Connection to bellatrix.uberspace.de closed.
$ mina ssh
$ ruby -v
ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux]
[a4aa2@bellatrix rails]$ 
@JuanitoFatas
Copy link

I think so. I source it in environment task.

task :environment do
  queue 'source ~/.bash_profile'
end

@d4be4st
Copy link
Member

d4be4st commented May 4, 2015

that is because of how ssh works, mina does not run ssh interactively

http://askubuntu.com/a/121075

@sintro
Copy link

sintro commented Oct 7, 2017

So, how can we workaround this? It is handy to ssh server with mina's ssh command, but everytime we have to print something like source ~/.bash_profile in opened console. Is there any options to perform such commands automatically or to login to interactive shell with mina's ssh?
The @JuanitoFatas way does not work

@d4be4st
Copy link
Member

d4be4st commented Oct 8, 2017

Take a look at FAQ There is more info there on how to fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants