# Ssh cluster julia host address issue

**URL:** <https://discourse.julialang.org/t/ssh-cluster-julia-host-address-issue/63814>\
**Category:** Julia at Scale\
**Created:** [June 30, 2021, 10:03am UTC](https://discourse.julialang.org/t/ssh-cluster-julia-host-address-issue/63814 "2021-06-30T10:03:47Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![grandemundo82](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/grandemundo82/32/17667_2.png) [@grandemundo82](https://discourse.julialang.org/u/grandemundo82)\
**Post date:** [June 30, 2021, 10:03am UTC](https://discourse.julialang.org/t/ssh-cluster-julia-host-address-issue/63814/1 "2021-06-30T10:03:47Z")

</div>

I am getting some error adding processors to a university cluster.  
When I ssh to the cluster and start Julia, when I run

```julia
using Distributed
addprocs([("username@compute-6-300",1)], tunnel=true, max_parallel=1, exename="/julia-1.6.1/bin/julia", sshflags="-vv")

```

I get the error

```julia

Unmatched '.

\/julia-1.6.1/bin/julia' --worker: Command not found.

**ERROR:** TaskFailedException

    nested task error: Unable to read host:port string from worker. Launch command exited with error?
    Stacktrace:
     [1] worker_from_id(pg::Distributed.ProcessGroup, i::Int64)
       @ Distributed /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Distributed/src/cluster.jl:1082
     [2] worker_from_id
       @ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Distributed/src/cluster.jl:1079 [inlined]
     [3] #remote_do#154
       @ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Distributed/src/remotecall.jl:486 [inlined]
     [4] remote_do
       @ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Distributed/src/remotecall.jl:486 [inlined]
     [5] kill(manager::Distributed.SSHManager, pid::Int64, config::WorkerConfig)
       @ Distributed /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Distributed/src/managers.jl:680
     [6] create_worker(manager::Distributed.SSHManager, wconfig::WorkerConfig)
       @ Distributed /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Distributed/src/cluster.jl:593
     [7] setup_launched_worker(manager::Distributed.SSHManager, wconfig::WorkerConfig, launched_q::Vector{Int64})
       @ Distributed /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Distributed/src/cluster.jl:534
     [8] (::Distributed.var"#41#44"{Distributed.SSHManager, Vector{Int64}, WorkerConfig})()
       @ Distributed ./task.jl:411
    

Can someone please help?
```

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [June 30, 2021, 12:13pm UTC](https://discourse.julialang.org/t/ssh-cluster-julia-host-address-issue/63814/2 "2021-06-30T12:13:15Z")

</div>

What is the shell on the remote? Perhaps [https://github.com/JuliaLang/julia/pull/41285](https://github.com/JuliaLang/julia/pull/41285) is related.

---

<div class="post-metadata">

**Author:** ![grandemundo82](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/grandemundo82/32/17667_2.png) [@grandemundo82](https://discourse.julialang.org/u/grandemundo82)\
**Post date:** [June 30, 2021, 12:29pm UTC](https://discourse.julialang.org/t/ssh-cluster-julia-host-address-issue/63814/3 "2021-06-30T12:29:06Z")

</div>

Thanks a lot fredrikekre. I get

> ssh -V to check

> OpenSSH\_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013

Things do not get updated often over here I am afraid. I had a looked at the link you sent but I am not quite sure what I am supposed to do about it. Any further help would be much appreciated?

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [June 30, 2021, 12:36pm UTC](https://discourse.julialang.org/t/ssh-cluster-julia-host-address-issue/63814/4 "2021-06-30T12:36:44Z")

</div>

Sorry, I meant that perhaps `sh` on the remote is not a POSIX shell (e.g. `bash`). On my machine `sh` is `bash` for example:

```julia
$ ls -l $(which sh)
lrwxrwxrwx 1 root root 4 26 maj 2020 /usr/bin/sh -> bash

```

---

<div class="post-metadata">

**Author:** ![grandemundo82](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/grandemundo82/32/17667_2.png) [@grandemundo82](https://discourse.julialang.org/u/grandemundo82)\
**Post date:** [June 30, 2021, 1:23pm UTC](https://discourse.julialang.org/t/ssh-cluster-julia-host-address-issue/63814/5 "2021-06-30T13:23:58Z")

</div>

Thanks again for clarifying. This is what I get:

> echo “$SHELL”  
> /bin/tcsh

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [June 30, 2021, 1:24pm UTC](https://discourse.julialang.org/t/ssh-cluster-julia-host-address-issue/63814/6 "2021-06-30T13:24:59Z")

</div>

Okay, I believe that is not supported correctly (see the link in my first message).

---

<div class="post-metadata">

**Author:** ![grandemundo82](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/grandemundo82/32/17667_2.png) [@grandemundo82](https://discourse.julialang.org/u/grandemundo82)\
**Post date:** [June 30, 2021, 1:27pm UTC](https://discourse.julialang.org/t/ssh-cluster-julia-host-address-issue/63814/7 "2021-06-30T13:27:22Z")

</div>

thanks. i am not understanding how the guy fixed the problem but i ll ask there. thank you again.

---

<div class="post-metadata">

**Author:** ![Xiaodong\_Hu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodong_hu/32/46382_2.png) [@Xiaodong\_Hu](https://discourse.julialang.org/u/Xiaodong_Hu)\
**Post date:** [January 19, 2022, 10:09pm UTC](https://discourse.julialang.org/t/ssh-cluster-julia-host-address-issue/63814/8 "2022-01-19T22:09:06Z")

</div>

Thank you so much! I tried many posted solutions online but NONE of them works. Thank you for mention this!  
After the PR ([https://github.com/JuliaLang/julia/pull/41485](https://github.com/JuliaLang/julia/pull/41485)) now I managed to get it works with the new supported keyword `ssh=:csh`. For example, I can connect with

```julia
using Distributed
addprocs([("username@compute127", numberofprocs)], tunnel=true, max_parallel=1, exename="julia excecutable path", sshflags="-vv", shell=:csh)

```

in REPL. Thank you so much!
