Sorry, still I don’t get it (I know little of networks).
So, my server (mydomain.org) has Julia installed and available to users, sshd open at port 5100 and I did open an other port on the firewall (iptables) at 5130. My username is mrwhite
Now, from Juno on my desktop I selected Julia Client: Connect External Process
and got as response to run using Juno; Juno.connect(33125)
.
I then typed on a terminal:
ssh -R 54130:localhost:33125 mrwhite@mydomain.org -p 54100
That logged me to the server on mydomain.org
Do I need to do anything on Juno now (in particular do I need to type using Juno; Juno.connect(33125)
) ? Do I need to run Julia on the server ?
If I type a=3+3
I run what it looks the local version of Julia, while if I type using Juno; Juno.connect(33125) I get:
ERROR (unhandled task failure): ArgumentError: stream is closed or unusable
Stacktrace:
[1] check_open(::TCPSocket) at ./stream.jl:251
[2] uv_write(::TCPSocket, ::Ptr{UInt8}, ::UInt64) at ./stream.jl:795
[3] unsafe_write(::TCPSocket, ::Ptr{UInt8}, ::UInt64) at ./stream.jl:832
[4] print(::TCPSocket, ::String) at ./strings/io.jl:122
[5] print(::TCPSocket, ::String, ::Char, ::Vararg{Char,N} where N) at ./strings/io.jl:40
[6] println(::TCPSocket, ::String, ::Vararg{String,N} where N) at ./strings/io.jl:54
[7] msg(::String, ::Dict{Symbol,Any}, ::Vararg{Dict{Symbol,Any},N} where N) at /home/lobianco/.julia/v0.6/Atom/src/comm.jl:124
[8] macro expansion at /home/lobianco/.julia/v0.6/Atom/src/comm.jl:64 [inlined]
[9] (::Atom.##11#13)() at ./event.jl:73
EDIT: Somehow I finally got the “Julia is connected” message… but then if I remove the connection it still seems to work… how can I check if I am using a local julia version or the remote one? (also, I got the message only once, I am unable to reproduce it again :-/)