SSH

リーモサーバにファイルを転送

scp -i 鍵 -p ポート ローカルファイル ユーザ@IP:リモートファイル

リモートサーバでコマンドを実行

ssh -i 鍵 -p ポート -l ユーザ IP コマンド