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

登陆

sshpass -p password ssh username@ip

起别名

vim ~/.bash_profile

ssh alias

插入 alias serv="sshpass -p 'mima' ssh user@ip"

立即起效

source ~/.bash_profille

serv 就连上服务器啦

相关文章:

  • 2022-12-23
  • 2021-06-04
  • 2021-09-05
  • 2022-02-08
  • 2021-07-18
  • 2022-12-23
猜你喜欢
  • 2021-05-22
  • 2021-09-15
  • 2022-12-23
  • 2022-12-23
  • 2021-12-17
  • 2022-02-09
相关资源
相似解决方案