I am using commands to connect to remote server using ssh
spawn ssh userId@host
expect "password:"
send "password\r"
Issue is sometime,even before shell prompt for password, send command is run which result's in password getting display in plain text on console.
It there a way to
- make sure, send is always called after expect
- or if it get's called, it should display something like
*******
and not plain text
I read the documentation of send
but no luck there.