hierynomus / hierynomus/sshj

How to respond to command promts

Open
#799 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.7k
Forks
620
Avg merge
3d 23h
Merged PRs (30d)
11

Description

Im trying to execute a "git clone" which will prompt for username and password. I currently have this:

```java
try (var session = client.startSession()) {
LOGGER.info("Cloning game repository on " + domain);
var cmd = session.exec("git clone " + repository.getPath() + " server");
//TODO run git login process
cmd.join(2, TimeUnit.MINUTES);
}
```
How can I do this? I heard that "shell" might be a way to go but Im really confused on what I have to do with it and there is no docs.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.