#!/bin/sh exec cat ~/.ssh/id_rsa.pub | ssh "$@" 'chmod 700 ~/.ssh; cat >> ~/.ssh/authorized_keys; chmod 640 ~/.ssh/authorized_keys'