Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ht ssh remote_host. show prompt and show us a way to feed input #7

Open
jzkunlun opened this issue Jun 5, 2024 · 1 comment
Open

Comments

@jzkunlun
Copy link

jzkunlun commented Jun 5, 2024

raw terminal gave a lot of garbed characters. I wish this ht may make ssh interactive session cleaner.

ht ssh username@remote-host
launching command "ssh username@remote-host" in terminal of size 120x40

it waited there forever, actually in normal terminal, it prompts to as ask password, how do I get prompt and feed my input?

@ku1ik
Copy link
Collaborator

ku1ik commented Jun 25, 2024

When you run ssh username@remote-host, this command already runs inside a virtual terminal, so you need to input your password with ht's input API, e.g.:

{ "type": "sendKeys", "keys": ["my-secret-password", "Enter"] }

(sendKeys has been added in v0.2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants