在MAC上还没发现xshell一样的终端工具。不过mac的终端命令,可以写好多脚本来管理。

首先想到的就是把服务器IP及密码使用shell管理起来,以便下次登录的时候不用在重新输入,或者只输入代号就行。但是在写的时候发现ssh 是不支持密码参数的,不过找到sshpass 这个是可以的。

首先安装sshpass

cmd:~ dongjunjie$ brew install https://raw.githubusercontent.com/kadwanev/bigboybrew/master/Library/Formula/sshpass.rb
######################################################################## 100.0%
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Error: sshpass cannot be built with any available compilers.
Install GNU's GCC
brew install gcc cmd:~ dongjunjie$ brew install gcc
==> Installing dependencies for gcc: gmp, isl, mpfr, libmpc
==> Installing gcc dependency: gmp
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Error: Failure while executing: git config --local --replace-all homebrew.private true cmd:~ dongjunjie$ xcode-select --install
xcode-select: note: install requested for command line developer tools
cmd:~ dongjunjie$ brew install gcc
==> Installing dependencies for gcc: gmp, isl, mpfr, libmpc
==> Installing gcc dependency: gmp
==> Downloading https://homebrew.bintray.com/bottles/gmp-6.1.2_2.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring gmp-6.1.2_2.high_sierra.bottle.tar.gz

最新文章

  1. Apriori——python3实现
  2. golang 格式化时间为字符串
  3. Socket的双网卡收发(C#)
  4. 3、Spring整合Hibernate
  5. 浅谈Windows Server APPFABRIC
  6. <input type=button> 跳转页面
  7. HDU 4864Task(更多的联合培训学校1)(贪婪)
  8. intellij IDEA mybatis插件破解方法
  9. 【软件】关于Notepad++(32位)
  10. 【转】iptables 命令介绍
  11. Hibernate之SchemaExport的使用
  12. 读书笔记--Android Gradle权威指南(下)
  13. 【数学建模】MatLab 数据读写方法汇总
  14. tomcat之性能优化
  15. JS下计算当前日期(当天)后N天出现NAN或者undefined的情况
  16. 程序员之路:python3+PyQt5+pycharm桌面GUI开发(转)
  17. vue--postcss插件
  18. CMS (内容管理系统)
  19. 拦截器interceptors
  20. windows 命令行报错:file(s) not in client view

热门文章

  1. facebook api之Access Tokens之Business Manager System User
  2. zepto 入门
  3. Lintcode455-StudentID-Easy
  4. BZOJ 4808: 马(二分图最大点独立集)
  5. 获取IP及判断IP是否在区间
  6. Codeforces 786 C. Till I Collapse
  7. 使用ajax判断登录用户名
  8. [原][osg]osgconv浅析
  9. java 常用异常及作用
  10. image以最小边为标准填满正方形父级元素