如何在Mac上安装sshpass? [英] How to install sshpass on mac?

查看:1322
本文介绍了如何在Mac上安装sshpass?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从Mac自动执行ssh登录.

I would like to automate ssh login from my mac.

它确实有一个简单的解决方案:

It does have a simple solution:

sshpass -p my_password ssh m_username@hostname

但是我的问题是在Mac上安装sshpass.

but my problem is installing sshpass on my mac.

推荐答案

此处有有关如何安装sshpass的说明:

There are instructions on how to install sshpass here:

https://gist.github.com/arunoda/7790979

对于Mac,您将需要安装xcode和命令行工具,然后使用非官方的Homewbrew命令:

For Mac you will need to install xcode and command line tools then use the unofficial Homewbrew command:

brew install https://raw.githubusercontent.com/kadwanev/bigboybrew/master/Library/Formula/sshpass.rb

这篇关于如何在Mac上安装sshpass?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆