Hi,

   +-From: Mattia <mat...@tekno-soft.it> ----
   |_Date: Tue, 14 Feb 2012 11:00:31 +0100 __
   |
   |                                         Using something as simple as
   |             // Set environment variable
   |             ((ChannelShell)channel).setEnv("ALTERNATE_EDITOR", "vim");
   |, without having changed anything else in the application, makes
   |channel.connect() give me the following exception:

The older OpenSSH had not implemented that functionality.  If you are
using recent OpenSSH, refer to "AcceptEnv" in "man sshd_config".

   |On another note, what's the suggested way to handle X11
   |authorization by cookie? That is, X11 Forwarding
   |works (finally!) fine if I manually call `xhost` to allow
   |connections before running my applications. I would like to use
   |Session#setX11Cookie to do this, but haven't found a reliable and
   |portable way to get the session cookie, short of calling `xauth
   |list` and parsing the output which really is not doable in my
   |scenario.

It must be in ~/.Xauthority, so you can parse and extract what you want.
Originally, jsch had been developed for our pure java X server,
and cookies exist only in JVM and they are easily accessible from jsch.
The current functionality is enough for us, so there is no plan to do
for handling x-cookies.


Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
Skype callto://jcraft/
Twitter: http://twitter.com/ymnk
Facebook: http://facebook.com/aymnk

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to