Rely on ssh-agent for key management

This commit is contained in:
Pieter Noordhuis
2014-10-12 16:25:14 -07:00
parent 1152471db7
commit a1c40922e0
2 changed files with 46 additions and 20 deletions

View File

@@ -14,22 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
function public-key {
local dir=${HOME}/.ssh
for f in $HOME/.ssh/{id_{rsa,dsa},*}.pub; do
if [ -r $f ]; then
echo $f
return
fi
done
echo "Can't find public key file..." 1>&2
exit 1
}
PUBLIC_KEY_FILE=${PUBLIC_KEY_FILE-$(public-key)}
SSH_OPTS="-oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null"
SSH_OPTS="-oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oLogLevel=ERROR"
# These need to be set
#export GOVC_URL=