I want to write a simple bash script that will update an SVN working copy in a given directory. The repository is accessed with the
svn+ssh protocol. The basic process this needs to follow is:
#!/bin/bash # temporarily relax firewall iptables -I OUTPUT -p tcp --dport 12345 -j ACCEPT svn up /path/to/working/copy # prompt for ssh password will be here # close firewall again iptables -I OUTPUT -p tcp --dport 12345 -j REJECT
What I'm stuck on his how to tell my bash script to supply the password to SSH when prompted. Typing the password on the line after the
svn up command, predictably, doesn't work.
Is this even possible? If not, alternative ways of achieving this goal will be appreciated.
P.S. I know I should be using SSH public/private key authentication, but the person who runs the server that hosts the SVN repo isn't interested in setting this up for me!