SSH password as a command-line parameter?

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


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

> ssh me at server.com "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.

http://www.hackinglinuxexposed.com/articles/20021226.html

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

--
Michael T. Richter
Email: ttmrichter at gmail.com, mtr1966 at hotpop.com
MSN: ttmrichter at hotmail.com, mtr1966 at hotmail.com; YIM:
michael_richter_1966; AIM: YanJiahua1966; ICQ: 241960658; Jabber:
mtr1966 at jabber.cn

"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: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20060618/9fe36b6e/attachment.html>
-------------- 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: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20060618/9fe36b6e/attachment.sig>


More information about the ubuntu-users mailing list