[CentOS] Can expect do this?
Barry Brimer
lists at brimer.orgTue Nov 11 13:03:39 UTC 2008
- Previous message: [CentOS] Can expect do this?
- Next message: [CentOS] Can expect do this?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 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. Use autoexpect. It will write the expect script for you. I can't think of any reason why this wouldn't work. Barry
- Previous message: [CentOS] Can expect do this?
- Next message: [CentOS] Can expect do this?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list