true, null);
if (success) {
// Allow an Agent Channel to be opened
connection.addChannelFactory(AgentSocketChannel.AGENT_FORWARDING_CHANNEL,
new ChannelFactory() {
public Channel createChannel(String channelType,
byte[] requestData) throws InvalidChannelException {
try {
AgentSocketChannel channel = new AgentSocketChannel(false);
Socket socket = SshAgentClient.connectAgentSocket(System.getProperty(