While searching for the reason why net/ssh didn't pick up my keys from my home folder, I noticed that Dir.home is pointing to the path defined in the LOGDIR evn variable.
In org.jruby.Rubydir.getHomeDirectoryPath() the order is
- LOGDIR
- HOME
- user.home
According to JRUBY-6295 in Jira it should be
- HOME
- user.home
- LOGDIR
(which makes much more sense).