LoginSignup
1
0

More than 5 years have passed since last update.

iTerm2のProfilesでsshpassとsshを併用しサーバに接続する方法

Posted at

前提

https://qiita.com/LowSE01/items/f4919fff8f51887a2690
sshpassはこちらの記事を参考にしbrewでインストールしました。

brew install http://git.io/sshpass.rb

現象

通常のiTerm2から

sshpass -p パスワード ssh ユーザー名@接続先

上記のコマンドを実行するとサーバに接続できるが、Profilesに同じコマンドを保存し開いてみるとBroken Pipeが表示され接続できない。

解決法

調べてみたところ、以下のサイトがヒットした。

/usr/local/bin/sshpass -p パスワード ssh ユーザー名@接続先

これならいける様子。試してみたところ接続が確認できた。

1
0
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
1
0