Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020 
<== Date ==> <== Thread ==>

Subject: Re: does CSS (CAJ?) support CA over an ssh tunnel
From: Andrew Johnson <anj@aps.anl.gov>
To: tech-talk@aps.anl.gov
Date: Mon, 9 Apr 2012 13:55:00 -0500
Hi Peter,

On 2012-04-09 Peter Milne wrote:
> CA tunnelled successfully over ssh:
> 
> (IOC:5064 port forwarded to localhost:10013)
> 
> export EPICS_CA_ADDR_LIST=localhost:10013
> export EPICS_CA_AUTO_ADDR_LIST=no
> export EPICS_CA_NAME_SERVERS=localhost:10013
> 
> camonitor cpsc_011_UPTIME
> cpsc_011_UPTIME 2012-04-09 19:02:06.116235 107056
> cpsc_011_UPTIME 2012-04-09 19:02:07.116355 107057
> 
> But on running css from the same shell session with the same exported
> variables, it's unable to see the PV
> 
> => Is it possible to view a tunneled PV from CSS?.

Does your CSS have JCA configured to use the Pure Java implementation of the 
CA client code, or the JNI implementation that calls OS-specific?  You can 
find that under Preferences => CSS Core => EPICS.

I suspect the pure Java implementation of JCA doesn't have the ability to make 
TCP-only connections (added to Base in 3.14.12) which is required to tunnel CA 
over ssh. It should be possible to fix that by switching to JNI as long as the 
native libraries it uses are from Base-3.14.12 or later.  Unfortunately I also 
suspect the CSS distributions have not updated those Base libraries recently, 
so you might have some difficulties with this unless you build your own 
package.

- Andrew
-- 
Never interrupt your enemy when he is making a mistake.
-- Napoleon Bonaparte

Replies:
Re: does CSS (CAJ?) support CA over an ssh tunnel Peter Milne
References:
does CSS (CAJ?) support CA over an ssh tunnel Peter Milne

Navigate by Date:
Prev: Re: does CSS (CAJ?) support CA over an ssh tunnel Kasemir, Kay
Next: Re: does CSS (CAJ?) support CA over an ssh tunnel Peter Milne
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020 
Navigate by Thread:
Prev: Re: does CSS (CAJ?) support CA over an ssh tunnel Kasemir, Kay
Next: Re: does CSS (CAJ?) support CA over an ssh tunnel Peter Milne
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·