ht icon indicating copy to clipboard operation
ht copied to clipboard

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

Open jzkunlun opened this issue 1 year ago • 1 comments

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?

jzkunlun avatar Jun 05 '24 03:06 jzkunlun

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)

ku1ik avatar Jun 25 '24 09:06 ku1ik