commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brendan Crowley" <>
Subject Execute ssh command and input password upon prompt
Date Tue, 19 Jun 2012 15:14:14 GMT
Hi All,


I'm looking to write a java utility that will execute a "ssh -t -t user@host
mysqldump -uuser -ppw db table" the other command after the ssh will return
the result to standard output.


The ssh command results in a prompt for a Password, i would try to avoid
shared keys in my implementation, how can i setup apache common exec to
execute the above command and automatically input the password when







  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message