pandaomeng / gitalk-comment

使用gitalk存储博客的评论
0 stars 0 forks source link

实现ssh 自动登录 | Hexo #33

Open pandaomeng opened 5 years ago

pandaomeng commented 5 years ago

http://www.pandaomeng.com/2018/05-30-linux-expect/

(expect 可能需要安装) 12345678910111213141516171819#!/usr/bin/expectset timeout 60set host ...set name rootset password 123456spawn ssh $host -l $nameexpect { "(yes/no)?" &#123