SSH password as a command-line parameter?

Michael T. Richter ttmrichter at
Sun Jun 18 15:10:43 UTC 2006

On Sun, 2006-18-06 at 16:02 +0100, Daniel Carrera wrote:

> ssh me at "mysqldump db_name -u me --password=secret | gzip -c" 
>  > sql-backup-2006-06-18.gz

> This would work except that I still need to type the ssh password. Is it 
> possible to specify the ssh password in the command line? Or do 
> something else so I can run this on a script?

You can set up some public keys for SSH sign-in.  Then you can automate
making connections.

That's what helped me set up an SSH bridge to get around the Great

Michael T. Richter
Email: ttmrichter at, mtr1966 at
MSN: ttmrichter at, mtr1966 at; YIM:
michael_richter_1966; AIM: YanJiahua1966; ICQ: 241960658; Jabber:
mtr1966 at

"Then, of course, there is the feeling that something sexual must be
something very happy, a marvelous experience. When this develops, I
always see the negative side." --The Dalai Lama
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <>

More information about the ubuntu-users mailing list