setting environment variables on the remote host
maf at appgate.com
maf at appgate.com
Wed Oct 10 19:56:31 MEST 2007
On 10 okt, Ryan Braud wrote:
> The thing is, if I ssh from the command line, I can pass the environment
> variables just fine. So I don't think the ssh server on the remote
> machine is what is stopping me. Any other ideas?
The easiest way then is to enable debugging. look for the DEBUG_ALL_TX
and DEBUG_ALL_RX in com/mindbright/ssh2/SSH2Transport.java and change
their values to true. Then add this to your code:
SSH2Preferences prefs = new SSH2Preferences();
prefs.setPreference(SSH2Preferences.LOG_LEVEL, "9");
...
SSH2Transport transport = new SSH2Transport(serverSocket, prefs,
createSecureRandom());
Then run it again. This should give you a very detailed log of what is
actually sent over the wire.
/MaF
--
Martin Forssen <maf at appgate.com> Development Manager
Phone: +46 31 7744361 AppGate Network Security AB
More information about the Mindterm-users
mailing list