Automate user/pass transmission?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi newsgroup,

I am trying to write a maintenance script which connects to a server via SSH and cleans up several files..
I know e.g. that you can transmit username and password of HTTP Auth like, but how can I write a simple bash file to connect via SSH?
I tried so far: - ssh dbraun@ -p ku2jsx9r
                  - ssh -p ku2jsx9r dbraun@

but neither works..

Can anyone help?

Thank you,

Re: Automate user/pass transmission?

Quoted text here. Click to load it

You'd better use public key authentication.  

Gilles Pion

Site Timeline