Re: [CentOS] Can expect do this?

2008-11-11 Thread Greg Bailey
Fajar Priyanto wrote: 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 '

Re: [CentOS] Can expect do this?

2008-11-11 Thread MHR
On Tue, Nov 11, 2008 at 9:25 AM, Barry Brimer <[EMAIL PROTECTED]> wrote: > > There are no doubt severe security issues with this method, but the OP stated > that key-authenticated sessions were not permissible. He would be better off > encouraging the powers that be to allow key-authenticated sess

Re: [CentOS] Can expect do this?

2008-11-11 Thread Barry Brimer
Quoting MHR <[EMAIL PROTECTED]>: > On Tue, Nov 11, 2008 at 5:03 AM, Barry Brimer <[EMAIL PROTECTED]> wrote: > > > > Use autoexpect. It will write the expect script for you. I can't think of > > any reason why this wouldn't work. > > > > It probably will, but there are severe security issues with

Re: [CentOS] Can expect do this?

2008-11-11 Thread MHR
On Tue, Nov 11, 2008 at 5:03 AM, Barry Brimer <[EMAIL PROTECTED]> wrote: > > Use autoexpect. It will write the expect script for you. I can't think of > any reason why this wouldn't work. > It probably will, but there are severe security issues with this sort (plain text passwords) of approach.

Re: [CentOS] Can expect do this?

2008-11-11 Thread Fajar Priyanto
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filipe Brandenburger wrote: > Hi, > > On Tue, Nov 11, 2008 at 04:42, Fajar Priyanto <[EMAIL PROTECTED]> wrote: >> But, I'm in an environment where PubKeyAuthentication is not allowed in ssh >> :( >> So, I'm confused how to automate it as cronjob. >

Re: [CentOS] Can expect do this?

2008-11-11 Thread Barry Brimer
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 t

Re: [CentOS] Can expect do this?

2008-11-11 Thread Filipe Brandenburger
Hi, On Tue, Nov 11, 2008 at 04:42, Fajar Priyanto <[EMAIL PROTECTED]> wrote: > But, I'm in an environment where PubKeyAuthentication is not allowed in ssh :( > So, I'm confused how to automate it as cronjob. Before you start, consider enabling public keys or requesting that to your sysadmin, sinc

Re: [CentOS] Can expect do this?

2008-11-11 Thread John R Pierce
Fajar Priyanto wrote: 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 :( you really should convince whomever has made that boneheaded decision that its a lot MORE secure than requiring you to put the

[CentOS] Can expect do this?

2008-11-11 Thread Fajar Priyanto
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 th