miwaiwai

导航

随笔分类 -  shell

自动登录ssh
摘要:[care@DataNode2 ~]$ more client.sh #!/usr/bin/expect -fset timeout 30spawn ssh root@127.0.0.1expect "password:"send "NSnb6@Pj!#\r"expect "]*"interact 阅读全文

posted @ 2023-12-27 21:23 米歪歪 阅读(8) 评论(0) 推荐(0) 编辑