I am trying to connect to docker containers using SSHManager by default. Only sshd works in these containers, with public key authentication and julia installation.
Here is my docker file:
FROM rastasheep/ubuntu-sshd
RUN apt-get update && apt-get install -y julia
RUN mkdir -p /root/.ssh
ADD id_rsa.pub /root/.ssh/authorized_keys
I start the container using:
sudo docker run -d -p 3333:22 -it --name julia-sshd julia-sshd
And then on the host machine, using julia repl, I get the following error:
julia> import Base:SSHManager
julia> addprocs(["root@localhost:3333"])
stdin: is not a tty
Worker 2 terminated.
ERROR (unhandled task failure): EOFError: read end of file
Master process (id 1) could not connect within 60.0 seconds.
exiting.
I tested that I can connect to the container via ssh without a password.
I also tested that in julia repl I can add a regular julia machine installed in the cluster and it works fine.
But I cannot get these two things to work together. Any help or suggestions would be appreciated.
torce source
share