# option:OOD\_SSH\_WRAPPER custom ssh wrapper not picked up

**URL:** https://discourse.openondemand.org/t/option-ood-ssh-wrapper-custom-ssh-wrapper-not-picked-up/828
**Category:** Get Help
**Created:** [April 9, 2020, 12:11pm UTC](https://discourse.openondemand.org/t/option-ood-ssh-wrapper-custom-ssh-wrapper-not-picked-up/828 "2020-04-09T12:11:26Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![baverhey](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/baverhey/32/605_2.png) [@baverhey](https://discourse.openondemand.org/u/baverhey)
#### Post date: [April 9, 2020, 12:11pm UTC](https://discourse.openondemand.org/t/option-ood-ssh-wrapper-custom-ssh-wrapper-not-picked-up/828/1 "2020-04-09T12:11:26Z")

</div>

The pr is merged but the new ssh wrapper is not used, the setting is not picked up nd default ssh is used. [https://github.com/OSC/ondemand/pull/406](https://github.com/OSC/ondemand/pull/406)

We are on ood 1.7.9

does the option need to be defined at app level in  
ood/apps/sys/shell/env --\> according to [https://osc.github.io/ood-documentation/master/customization.html?highlight=env](https://osc.github.io/ood-documentation/master/customization.html?highlight=env)  
ood/apps/sys/shell/.env  
ood/apps/sys/dashboard/.env.production  
all not picked up

in file /apps/sys/shell/app.js  
var host = process.env.DEFAULT\_SSHHOST || ‘localhost’;  
var cmd = process.env.OOD\_SSH\_WRAPPER

related issu: [Difficulty getting shell app to observe DEFAULT\_SSHHOST](https://discourse.openondemand.org/t/difficulty-getting-shell-app-to-observe-default-sshhost/697)

thx for the info.

---

<div class="post-metadata">

### Author: ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)
#### Post date: [April 9, 2020, 1:15pm UTC](https://discourse.openondemand.org/t/option-ood-ssh-wrapper-custom-ssh-wrapper-not-picked-up/828/2 "2020-04-09T13:15:00Z")

</div>

Yes the environment variables should be listed here `/etc/ood/config/apps/shell/env`. Be sure to restart your PUN for things to take affect.

---

<div class="post-metadata">

### Author: ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)
#### Post date: [April 29, 2020, 1:27pm UTC](https://discourse.openondemand.org/t/option-ood-ssh-wrapper-custom-ssh-wrapper-not-picked-up/828/3 "2020-04-29T13:27:44Z")

</div>

Where you able to get this resolved by using the etc config files?

---

<div class="post-metadata">

### Author: ![baverhey](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/baverhey/32/605_2.png) [@baverhey](https://discourse.openondemand.org/u/baverhey)
#### Post date: [April 29, 2020, 2:30pm UTC](https://discourse.openondemand.org/t/option-ood-ssh-wrapper-custom-ssh-wrapper-not-picked-up/828/4 "2020-04-29T14:30:35Z")

</div>

yes, can be closed, no idea why it was not picked up.  
thx

---

<div class="post-metadata">

### Author: ![npavlovikj](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/npavlovikj/32/890_2.png) [@npavlovikj](https://discourse.openondemand.org/u/npavlovikj)
#### Post date: [May 13, 2020, 8:39pm UTC](https://discourse.openondemand.org/t/option-ood-ssh-wrapper-custom-ssh-wrapper-not-picked-up/828/5 "2020-05-13T20:39:03Z")

</div>

I am sorry for the silly question, but how does one restart the PUNs?

I used to do  
**sudo touch /var/www/ood/apps/sys/shell/tmp/restart.txt**  
**sudo systemctl try-restart httpd24-httpd.service httpd24-htcacheclean.service**  
but that would not always pick up the changes in “_/etc/ood/config/clusters.d/_” and “_/var/www/ood/apps/sys/shell/_”.

Using “ **sudo /opt/ood/nginx\_stage/sbin/nginx\_stage nginx\_clean -f** ” now works for me, but if there is a better and more correct way, I would definiltey like to know.

Thank you,  
Natasha

---

<div class="post-metadata">

### Author: ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)
#### Post date: [May 13, 2020, 8:45pm UTC](https://discourse.openondemand.org/t/option-ood-ssh-wrapper-custom-ssh-wrapper-not-picked-up/828/6 "2020-05-13T20:45:59Z")

</div>

Not silly at all! You have a button up at the top right of the dashboard, under the help tab to ‘restart web server’. That’s it, and it’ll restart just your PUN, no sudo required.

---

<div class="post-metadata">

### Author: ![npavlovikj](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/npavlovikj/32/890_2.png) [@npavlovikj](https://discourse.openondemand.org/u/npavlovikj)
#### Post date: [May 13, 2020, 8:59pm UTC](https://discourse.openondemand.org/t/option-ood-ssh-wrapper-custom-ssh-wrapper-not-picked-up/828/7 "2020-05-13T20:59:45Z")

</div>

Well, that was simpler than I thought 🙂 Out of curiosity, what is the command ran underneath “Restart Web Server”?

---

<div class="post-metadata">

### Author: ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)
#### Post date: [May 13, 2020, 9:13pm UTC](https://discourse.openondemand.org/t/option-ood-ssh-wrapper-custom-ssh-wrapper-not-picked-up/828/8 "2020-05-13T21:13:06Z")

</div>

It calls the api `/nginx/stop?redir=/pun/sys/dashboard/` which in turn calls nginx\_stage to stop your PUN, but also gives your browser a 302 redirect so that you end up starting it again.

---

<div class="post-metadata">

### Author: ![npavlovikj](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/npavlovikj/32/890_2.png) [@npavlovikj](https://discourse.openondemand.org/u/npavlovikj)
#### Post date: [May 13, 2020, 9:51pm UTC](https://discourse.openondemand.org/t/option-ood-ssh-wrapper-custom-ssh-wrapper-not-picked-up/828/9 "2020-05-13T21:51:01Z")

</div>

Thanks for the explanation Jeff!

---

<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, 3:43pm UTC](https://discourse.openondemand.org/t/option-ood-ssh-wrapper-custom-ssh-wrapper-not-picked-up/828/10 "2022-05-26T15:43:14Z")

</div>


