上一页 1 2 3 4 5 6 7 ··· 10 下一页
摘要: Ssh-server 服务端sshd_concfigPort 22Protocol 2HostKey /etc/ssh/ssh_host_rsa_keyHostKey /etc/ssh/ssh_host_dsa_keyHostKey /etc/ssh/ssh_host_ecdsa_keyUsePri... 阅读全文
posted @ 2014-04-23 01:52 osxlinux 阅读(793) 评论(0) 推荐(0)
摘要: #!/bin/bashtft_conf="/etc/xinetd.d/tftp"backup_dir="/network/sw_backup"if [ -d {backup_dir} ]thenecho "$backup_dir has been exist! "elsemkdir -pv $bac... 阅读全文
posted @ 2014-04-22 01:45 osxlinux 阅读(147) 评论(0) 推荐(0)
摘要: 1.建立一个ip,端口,用户,密码列表[root@localhost shell-key]# cat arg_list.txt 172.16.56.237 clouds root 22 172.16.56.215172.16.56.53 clouds root 22 172.16.56.215172.16.56.215 clouds root 22 172.16.56.215[root@localhost shell-key]# 2.建立expect交互交脚本:[root@localhost shell-key]# cat expect_run_config.exp #!/usr/bin... 阅读全文
posted @ 2014-01-15 16:23 osxlinux 阅读(538) 评论(0) 推荐(0)
摘要: #!/bin/bash#connect_the_hw_switch#by osx1260@163.com swip=172.16.56.2swport=2081swpasswd='yourswpasswd'swusername=yourswusernametime=$(date +"%F")echo ".............please wating 9s............"echo ".............This is $time..............."/usr/bin/expect -c & 阅读全文
posted @ 2014-01-13 17:17 osxlinux 阅读(443) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 10 下一页