protected Object doExecute() throws Exception {
io.info("Connecting to: {}", remote);
RshClient client = new RshClient(crypto, locator, handlers);
client.initialize();
PromptReader prompter = new PromptReader(terminal, io);
prompter.initialize();
client.connect(remote, local);
io.info("Connected");
// If the username/password was not configured via cli, then prompt the user for the values
if (username == null || password == null) {
if (username == null) {
username = prompter.readLine("Username: ");
}
if (password == null) {
password = prompter.readPassword("Password: ");
}
//
// TODO: Handle null inputs...
//