使用 nodejs ,主要使用 process 和 child_process 包下的东西。
1. 我想做一个类似 sshpass 的功能的东西。把 ssh 调起来,模拟输入密码。
-? ssh 需要额外添加 -T 参数,不是很明白。
-?密码总是返回错误,我确认密码是对的。
2. 我想调起来 docker -it 的交互形式。
docker -i 可以交互,但是所有命令都不认。
docker -t 调不起来。the input device is not a TTY
1. 我想做一个类似 sshpass 的功能的东西。把 ssh 调起来,模拟输入密码。
-? ssh 需要额外添加 -T 参数,不是很明白。
-?密码总是返回错误,我确认密码是对的。
2. 我想调起来 docker -it 的交互形式。
docker -i 可以交互,但是所有命令都不认。
docker -t 调不起来。the input device is not a TTY