There is a missing round bracket in the example code for setting up the shell factory: sshd.setShellFactory(new ProcessShellFactory(new String[] { "/bin/sh", "-i", "-l" });
should besshd.setShellFactory(new ProcessShellFactory(new String[] { "/bin/sh", "-i", "-l" }));
Cheers, Elliot