# Is there any way to add a cluster choice to File Explorer's "Open in terminal Menu"?

**URL:** <https://discourse.openondemand.org/t/is-there-any-way-to-add-a-cluster-choice-to-file-explorers-open-in-terminal-menu/364>\
**Category:** Feature Requests and Roadmap Discussion\
**Tags:** feature-request\
**Created:** [May 31, 2019, 7:35pm UTC](https://discourse.openondemand.org/t/is-there-any-way-to-add-a-cluster-choice-to-file-explorers-open-in-terminal-menu/364 "2019-05-31T19:35:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![azric](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/azric/32/63_2.png) [@azric](https://discourse.openondemand.org/u/azric)\
**Post date:** [May 31, 2019, 7:35pm UTC](https://discourse.openondemand.org/t/is-there-any-way-to-add-a-cluster-choice-to-file-explorers-open-in-terminal-menu/364/1 "2019-05-31T19:35:28Z")

</div>

We support multiple clusters thru a single OnDemand instance. In general this works well, but for File Explorer’s “Open in Terminal” menu, the “ssh” target is a constant set by DEFAULT\_SSHHOST. For most of our users this is fine. However, if a user is, e.g., compiling software, then which cluster that interactive window is on matters to them even the the directories are shared. I know users can do Dashboard-\>Clusters-\>desired cluster, get a shell window, and “cd” from there, but some users here like the File Explorer-\> Open in Terminal approach, so I’d like to let them pick a cluster from a dropdown list off of the “Open in Terminal” menu button.

Is there a way to do that, without locally modifying parts of rpm packages (which is not sustainable)?

---

<div class="post-metadata">

**Author:** ![efranz](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/efranz/32/27_2.png) [@efranz](https://discourse.openondemand.org/u/efranz)\
**Post date:** [June 3, 2019, 3:04pm UTC](https://discourse.openondemand.org/t/is-there-any-way-to-add-a-cluster-choice-to-file-explorers-open-in-terminal-menu/364/2 "2019-06-03T15:04:55Z")

</div>

That is a really good use case, and I don’t think there is a way to do this right now without modifying the rpm deployed app code. I’ll mark this as a feature request.

---

<div class="post-metadata">

**Author:** ![rodgers.355](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/rodgers.355/32/193_2.png) [@rodgers.355](https://discourse.openondemand.org/u/rodgers.355)\
**Post date:** [June 7, 2019, 9:14pm UTC](https://discourse.openondemand.org/t/is-there-any-way-to-add-a-cluster-choice-to-file-explorers-open-in-terminal-menu/364/3 "2019-06-07T21:14:51Z")

</div>

An example implementation: [https://github.com/OSC/ood-fileexplorer/pull/201](https://github.com/OSC/ood-fileexplorer/pull/201).

---

<div class="post-metadata">

**Author:** ![azric](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/azric/32/63_2.png) [@azric](https://discourse.openondemand.org/u/azric)\
**Post date:** [July 8, 2019, 10:19pm UTC](https://discourse.openondemand.org/t/is-there-any-way-to-add-a-cluster-choice-to-file-explorers-open-in-terminal-menu/364/4 "2019-07-08T22:19:09Z")

</div>

I tried adding  
`OOD_SSH_HOSTS="login.ocelote.hpc.arizona.edu:Ocelote,login.elgato.hpc.arizona.edu:ElGato"`  
to /etc/ood/config/apps/shell/env, after commenting out the DEFAULT\_SSHHOST entry in that file. While I no longer have a default ssh host, I also don’t have a dropdown for the  
“\>\_ Open in Terminal”  
menu in file explorer. Did I add this to the wrong file, or is my syntax messed up?

---

<div class="post-metadata">

**Author:** ![rodgers.355](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/rodgers.355/32/193_2.png) [@rodgers.355](https://discourse.openondemand.org/u/rodgers.355)\
**Post date:** [July 9, 2019, 1:39pm UTC](https://discourse.openondemand.org/t/is-there-any-way-to-add-a-cluster-choice-to-file-explorers-open-in-terminal-menu/364/5 "2019-07-09T13:39:02Z")

</div>

@azric right syntax, wrong file. `OOD_SSH_HOSTS` needs to be set in `/etc/ood/config/apps/files/env`

---

<div class="post-metadata">

**Author:** ![azric](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/azric/32/63_2.png) [@azric](https://discourse.openondemand.org/u/azric)\
**Post date:** [July 9, 2019, 3:46pm UTC](https://discourse.openondemand.org/t/is-there-any-way-to-add-a-cluster-choice-to-file-explorers-open-in-terminal-menu/364/6 "2019-07-09T15:46:52Z")

</div>

@rodgers.355 works like a champ!!

Thanks, and you can mark this one “fixed”.

---

<div class="post-metadata">

**Author:** ![westburg.2](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@westburg.2](https://discourse.openondemand.org/u/westburg.2)\
**Post date:** [May 26, 2022, 4:11pm UTC](https://discourse.openondemand.org/t/is-there-any-way-to-add-a-cluster-choice-to-file-explorers-open-in-terminal-menu/364/7 "2022-05-26T16:11:43Z")

</div>


