LoginSignup
16
8

More than 5 years have passed since last update.

Macへsshpassコマンドをインストールする方法

Posted at

brewでインストール (失敗)

  • 通常通りbrewでインストールしてみようとしたら失敗した。

    terminal
    brew install sshpass
    
    Error: No available formula with the name "sshpass"
    We won't add sshpass because it makes it too easy for novice SSH users to
    ruin SSH's security.
    
    • だめ。sshセキュリティがだめになっちゃうからやめとけ、だと。。。

誰かが使ったやつを使う (成功)

  • githubから取得

    terminal
    brew install http://git.io/sshpass.rb
    
    ######################################################################## 100.0%
    ==> Downloading http://sourceforge.net/projects/sshpass/files/sshpass/1.05/sshpass-1.05.tar.gz
    ==> Downloading from https://jaist.dl.sourceforge.net/project/sshpass/sshpass/1.05/sshpass-1.05.tar.gz
    ######################################################################## 100.0%
    ==> ./configure --prefix=/usr/local/Cellar/sshpass/1.05
    ==> make install
    🍺  /usr/local/Cellar/sshpass/1.05: 9 files, 40.7K, built in 16 seconds
    
  • 確認

    terminal
    brew info sshpass
    
    sshpass: stable 1.05
    http://sourceforge.net/projects/sshpass
    /usr/local/Cellar/sshpass/1.05 (9 files, 40.7K) *
      Built from source on 2017-02-16 at 21:10:51
    From: /usr/local/opt/sshpass/.brew/sshpass.rb
    
16
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
16
8