mpssh icon indicating copy to clipboard operation
mpssh copied to clipboard

Homebrew mpssh and dupes/openssh issues

Open sts opened this issue 11 years ago • 4 comments

mpssh doesn't detect the ssh and scp client correctly. Installing mpssh once homebrew/dupes/openssh should result in mpssh calling /usr/local/bin/ssh instead of /usr/bin/ssh.

$ brew install mpssh
$ strings /usr/local/bin/mpssh|grep bin
/usr/bin/ssh

sts avatar Dec 01 '14 22:12 sts

ssh binary is detected in the Makefile like this:

SSHPATH = which ssh

So it seems it picks up /usr/bin/ssh in your case (which is also the default).

ndenev avatar Dec 08 '14 09:12 ndenev

My shell returns the correct one, but homebrew still picks up the wrong one.

 $ which ssh
 /usr/local/bin/ssh

sts avatar Dec 08 '14 09:12 sts

I'm not familiar with homebrew, but it looks like homebrew is not picking up your PATH. Can you try to run "brew sh" and then in this shell do "brew install mpssh" ?

ndenev avatar Dec 12 '14 07:12 ndenev

That doesn't seem to fix it, for some reason make with Homebrew seems to pick up a different path.

sts ~ %  brew sh
Your shell has been configured to use Homebrew's build environment:
this should help you build stuff. Notably though, the system versions of
gem and pip will ignore our configuration and insist on using the
environment they were built under (mostly). Sadly, scons will also
ignore our configuration.
When done, type `exit'.

sts ~ % echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/opt/openssl/bin

sts ~ % which ssh
/usr/local/bin/ssh

sts ~ % brew uninstall mpssh
Uninstalling /usr/local/Cellar/mpssh/1.3.1...
rm /usr/local/bin/mpssh
rm /usr/local/share/man/man1/mpssh.1

sts ~ % which mpssh
mpssh not found

sts ~ % brew install mpssh
==> Downloading https://github.com/ndenev/mpssh/archive/1.3.1.tar.gz
Already downloaded: /Library/Caches/Homebrew/mpssh-1.3.1.tar.gz
==> Verifying mpssh-1.3.1.tar.gz checksum
tar xf /Library/Caches/Homebrew/mpssh-1.3.1.tar.gz
==> make CC=clang
clang -Wall  -c pslot.c
clang -Wall  -c host.c
clang -Wall  -c mpssh.c
gcc  pslot.o host.o mpssh.o   -o mpssh
==> Cleaning
==> Finishing up
ln -s ../Cellar/mpssh/1.3.1/bin/mpssh mpssh
ln -s ../../../Cellar/mpssh/1.3.1/share/man/man1/mpssh.1 mpssh.1
==> Summary
/usr/local/Cellar/mpssh/1.3.1: 4 files, 40K, built in 2 seconds

sts ~ % which mpssh
/usr/local/bin/mpssh

sts ~ % strings /usr/local/bin/mpssh | grep bin
/usr/bin/ssh

sts avatar Dec 17 '14 11:12 sts