#!/bin/sh cat ~/.ssh/.pub | ssh 'mkdir -p ~/.ssh && chmod 700 ~/.ssh && cat >> ~/.ssh/authorized_keys && echo "Key copied"'