Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

rsync/ssh passwords



On Sun, 2004-03-28 at 11:34, John Chambers wrote:

> The ssh docs don't seem to mention this at all. Is there any kown way
> to get ssh to play nice and accept a password from a parent process?
> 
> If all else fails, I suppose I can pull out  expect  and  use  it  to
> defeat this misuse of /dev/tty. That is one of the things that expect
> was invented for. But this is sorta like swatting flies with a sledge
> hammer.  It would be nicer if there were some simple, elegant way for
> my scripts to tell rsync "Use this password: ..."
> 
> If nobody knows, I'll just use expect.


Hi John,

With ssh-keygen and ssh-agent, you can create and manage public/private
key pairs for SSH sessions.  The big advantage with this approach is
that, once setup, your scripts won't need passwords and you won't have
to muck around with expect scripts.

See:

  http://www-106.ibm.com/developerworks/library/l-keyc.html
  http://www-106.ibm.com/developerworks/library/l-keyc2/
  http://www-106.ibm.com/developerworks/linux/library/l-keyc3/

for a well written tutorial.

Ed

-- 
Edward H. Hill III, PhD
office:  MIT Dept. of EAPS;  Room 54-1424;  77 Massachusetts Ave.
            Cambridge, MA 02139-4307
email:   eh3 at mit.edu,  ed at eh3.com
URL:     http://web.mit.edu/eh3/
phone:   617-253-0098
fax:     617-253-4464
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.blu.org/pipermail/discuss/attachments/20040328/305e7665/attachment.sig>



BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org