private void login() throws IOException {
        client.login(username, password);
        if (workingDirectory != null) {
            client.changeWorkingDirectory(workingDirectory);
        }
    }