Copy of J2SSH code