[CentOS] Can expect do this?

Fajar Priyanto fajarpri at arinet.org
Tue Nov 11 13:14:54 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Filipe Brandenburger wrote:
> Hi,
> 
> On Tue, Nov 11, 2008 at 04:42, Fajar Priyanto <fajarpri at arinet.org> 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, since using them is much more secure than storing your
> passwords in text scripts.
> 
>> 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?
> 
> Yes.
> 
>> Any examples are great help.
> 
> Google is your friend.
> http://bash.cyberciti.biz/security/expect-ssh-login-script/

Thanks guys,
Yes, I agree keybased ssh is much more secure right.
Let see what I can do.

- --
Fajar Priyanto | Reg'd Linux User #327841 | Linux tutorial
http://linux2.arinet.org
13:10:54 up 5:02, 2.6.24-18-generic GNU/Linux
Let's use OpenOffice. http://www.openoffice.org
The real challenge of teaching is getting your students motivated to learn.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJGYVOj17uLfLguNoRArr8AJoCdClNxK4rtbDMlw4bqlfogGefJACfYUWw
iweB0QiIxmjdLNxCVKajafg=
=46JV
-----END PGP SIGNATURE-----


More information about the CentOS mailing list