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