エロサイトの作り方

2013年11月から勉強しながらエロサイトを作っています。

Ansibleで-kオプションを使ってパスワード認証させるとエラーになる件

VagrantiMacに入れてリモート接続するようにしたら、vagrantユーザーで接続する時にもパスワードが必要になった。

そして、その状態でAnsibleから接続すると以下のエラーが発生してしまう。

エラー

fatal: [imac] => to use the 'ssh' connection type with passwords, you must install the sshpass program

FATAL: all hosts have already failed -- aborting

sshpassというのが必要らしい。

とりあえずbrew

$ brew search sshpass
We won't add sshpass because it makes it too easy for novice SSH users to ruin SSH's security.

どうやら「sshpassは素人にはお勧めできないから入れないぜ」って書いてある気がする。

そんなこと言われても、LAN内の接続だし最初のSSH設定を変えるまでの間だからねぇ……

お勧めされてなくてもやる

makeで入れる
$ curl -O -L http://downloads.sourceforge.net/project/sshpass/sshpass/1.05/sshpass-1.05.tar.gz
$ tar xzvf sshpass-1.05.tar.gz
$ ./configure
$ make
$ sudo make install
brewで入れる(!)
$ brew install https://raw.github.com/eugeneoden/homebrew/eca9de1/Library/Formula/sshpass.rb

お好きな方で。