シェルの先頭(#!/bin/sh の次)で「stty -echo」とやるといかがですか.
▽2
●
a-kuma3 ベストアンサー |
#! /usr/local/bin/expect log_user 0 spawn ssh -l user remotehost command expect password: send "password\r" interact
#! /usr/local/bin/expect spawn ssh -l user remotehost command expect password: send "password\r" log_user output.txt
expect のスクリプトで書いてますが、シェルスクリプトで expect のコマンドに書いても同じです。
■参考
http://linuxjm.sourceforge.jp/html/expect/man1/expect.1.html
http://nsa.kpu-m.ac.jp/gijutu/expect/howto-expect.html