# Julia on Cluster with SSH Restriction

**URL:** <https://discourse.julialang.org/t/julia-on-cluster-with-ssh-restriction/11823>\
**Category:** General Usage\
**Tags:** question, cluster\
**Created:** [June 20, 2018, 2:17pm UTC](https://discourse.julialang.org/t/julia-on-cluster-with-ssh-restriction/11823 "2018-06-20T14:17:03Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![barche](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/barche/32/79_2.png) [@barche](https://discourse.julialang.org/u/barche)\
**Post date:** [June 20, 2018, 8:09pm UTC](https://discourse.julialang.org/t/julia-on-cluster-with-ssh-restriction/11823/12 "2018-06-20T20:09:26Z")

</div>

> [@brossetti](#):
>
> Thanks for this suggestion! I’m getting some build errors related to `MPI_C` . Once I sort them out, I’ll reply back with my results

OK, feel free to post the error here or in an MPI.jl issue if you get stuck on it. Looking at your script, it should be sufficient to replace the current julia command with `mpirun julia test.jl` (assuming mpirun supports PBS, which it should), and enclose your test script in:

```julia
using MPI

mgr = MPI.start_main_loop(MPI.MPI_TRANSPORT_ALL)

# code

MPI.stop_main_loop(mgr)

```

---

_[View the full topic](https://discourse.julialang.org/t/julia-on-cluster-with-ssh-restriction/11823)._
