# Linux host adapter, ssh issues

**URL:** <https://discourse.openondemand.org/t/linux-host-adapter-ssh-issues/1252>\
**Category:** Get Help\
**Tags:** question\
**Created:** [December 15, 2020, 9:39am UTC](https://discourse.openondemand.org/t/linux-host-adapter-ssh-issues/1252 "2020-12-15T09:39:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![KMuriki](https://avatars.discourse-cdn.com/v4/letter/k/838e76/32.png) [@KMuriki](https://discourse.openondemand.org/u/KMuriki)\
**Post date:** [December 15, 2020, 9:39am UTC](https://discourse.openondemand.org/t/linux-host-adapter-ssh-issues/1252/1 "2020-12-15T09:39:43Z")

</div>

I’m having ssh issues while using Linux host adapter and looking for tips on how to debug my issue.

When I try to execute the ssh command with all the options manually from the OOD host to the target host it appears to be working:

[kmuriki@ood ~]$ hostname  
ood.brc.berkeley.edu

[kmuriki@ood ~]$ ssh -t -o BatchMode=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no kmuriki@n0003.testbed0 /usr/bin/env bash

[kmuriki@n0003 ~]$ hostname  
n0003.testbed0

But the same ssh command appears to be disconnecting when OOD executes

OOD logs below:

App 7947 output: [2020-12-14 16:10:25 -0800] INFO “execve = [{}, “ssh”, “-t”, “-o”, “BatchMode=yes”, “-o”, “UserKnownHostsFile=/dev/null”, “-o”, “StrictHostKeyChecking=no”, “kmuriki@n0003.testbed0”, “/usr/bin/env”, “bash”]”  
App 7947 output: [2020-12-14 16:10:26 -0800] INFO "method=POST path=/pun/sys/dashboard/batch\_connect/dev/jupyter-interactive/session\_contexts format=html controller=BatchConnect::SessionContextsController action=create status=302 duration=1445.91 view=0.00

Syslog messages from the host n0003.testbed0

Dec 14 16:10:25 n0003.testbed0 sshd[29013]: Accepted publickey for kmuriki from 10.0.0.39 port 58016 ssh2: DSA SHA256:fP5ARPAN3vihLme3gNxuDRK94/n8p3qRYXpfegcTdrU  
Dec 14 16:10:26 n0003.testbed0 kmuriki: n0003.testbed0 kmuriki: module load vim  
Dec 14 16:10:26 n0003.testbed0 sshd[29015]: Received disconnect from 10.0.0.39 port 58016:11: disconnected by user  
Dec 14 16:10:26 n0003.testbed0 sshd[29015]: Disconnected from 10.0.0.39 port 58016

You can see ssh was successful and loaded the module which I have in my $HOME/.bashrc but immediately disconnects. Not able to figure out why the disconnects are happening. Any tips on how to debug this ?

Thanks,  
Krishna.

---

<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:** [December 15, 2020, 5:24pm UTC](https://discourse.openondemand.org/t/linux-host-adapter-ssh-issues/1252/2 "2020-12-15T17:24:06Z")

</div>

I would say follow these directions for trouble shooting. It sounds like “The job just exists with no errors.” is the right description of the problem?

> **[Configure LinuxHost Adapter (beta) — Open OnDemand 1.8.12 documentation](https://osc.github.io/ood-documentation/master/installation/resource-manager/linuxhost.html#the-job-just-exists-with-no-errors)**

---

<div class="post-metadata">

**Author:** ![KMuriki](https://avatars.discourse-cdn.com/v4/letter/k/838e76/32.png) [@KMuriki](https://discourse.openondemand.org/u/KMuriki)\
**Post date:** [December 16, 2020, 7:51am UTC](https://discourse.openondemand.org/t/linux-host-adapter-ssh-issues/1252/3 "2020-12-16T07:51:50Z")

</div>

Yeh this is ‘job just exits with no errors’ and already documented troubleshooting tip helped me. Turns out the location of my singularity container needs to be changed and I got it working now. Thanks.

---

<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/linux-host-adapter-ssh-issues/1252/4 "2022-05-26T15:43:01Z")

</div>

Closed on May 26, 2022, 3:43pm UTC


