ssh-copy-id というsshの公開鍵をリモートサーバーに登録する ちょっと便利なコマンドがあるんですが、macでbrewでインストールできなかったので、メモです。 下記のふぁいるを、/usr/local/binなどに作成します。 $ vi /usr/local/bin/ssh-copy-id #=> 下記のファイルを貼付け $ chmod +x /usr/local/bin/ssh-copy-id $ ssh-copy-id -i ~/.ssh/id_rsa.pub user@host #=> ~/.ssh/id_rsa.pub を指定したサーバーに設定 #!/bin/sh # Shell script to install your identity.pub on a remote machine # Takes the remote machine name as an arg

