shnulaa

          Never deter till tomorrow that which you can do today
          posts - 15, comments - 0, trackbacks - 0, articles - 2
            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

          ssh

          Posted on 2010-09-28 17:10 shnulaa 閱讀(212) 評論(0)  編輯  收藏 所屬分類: linux

          server

          ssh ---10000:localhost:22 lyb@3322.org


          client
          ssh lyb@localhost -10000


           1#!/bin/bash
           2while true;do
           3RET=`ps ax | grep "ssh -f -N -R 10000:localhost:22" | grep -"grep"`
           4if [ "$RET" = "" ]; then
           5echo "restart ssh server"
           6ssh ---10000:localhost:22 lyb@hahalee.3322.org
           7fi
           8sleep 10
           9done
          10

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 镶黄旗| 东安县| 兴文县| 城口县| 岱山县| 嵩明县| 菏泽市| 咸阳市| 桦川县| 商南县| 盐池县| 禹城市| 和林格尔县| 页游| 曲周县| 塔河县| 颍上县| 福清市| 昌邑市| 阿拉善左旗| 常熟市| 读书| 刚察县| 黄山市| 封丘县| 蒙城县| 靖宇县| 兴隆县| 宁南县| 宜黄县| 三明市| 桃园县| 八宿县| 台山市| 柘荣县| 邵东县| 克山县| 长垣县| 巴中市| 清水河县| 东宁县|