[CentOS] Can expect do this?

Fajar Priyanto fajarpri at arinet.org
Tue Nov 11 09:42:49 UTC 2008


Hi all,
I'm trying to scp some files from machine1 to machine2.
But, I'm in an environment where PubKeyAuthentication is not allowed in ssh :(
So, I'm confused how to automate it as cronjob.
However, I read somewhere that we can write a little bash script that
will utilize 'expect' to answer for the ssh password prompt?
Can we do this?
Any examples are great help.
Thank you.


More information about the CentOS mailing list