低血糖有什么危害| 太阳穴疼是什么原因| 发什么发什么| 每个月14号都是什么情人节| 喝什么利尿效果最好| 味甘是什么意思| 中医学专业学什么| 咦惹是什么意思| 佞臣什么意思| 敬谢不敏是什么意思| 于谦为什么加入国民党| 男性尿道痒吃什么药| 迅雷不及掩耳之势是什么意思| 二十七岁属什么生肖| 吃过期药有什么危害| 薛定谔的猫比喻什么| edf是什么意思| 浑身出汗是什么原因| 血脂稠吃什么药| 为什么开空调没蚊子| 荡漾什么意思| 升白针叫什么名字| 332是什么意思| 二月春风似剪刀的上一句是什么| b超和阴超有什么区别| 犒劳自己是什么意思| 夏天脸上皮肤痒是什么原因| 今天开什么| 便秘吃什么通便| 裸花紫珠是主治什么病| 93是什么意思| 什么东西补锌| 1030是什么星座| 为什么会长花斑癣| 宫颈萎缩意味着什么| 李宇春父亲是干什么的| 伤口好转的迹象是什么| 六根清净是什么意思| 专科有什么专业| 什么动物| 怀孕什么症状| 肾囊肿有什么症状| 什么是静脉曲张| 10月28是什么星座| 小苏打有什么作用| 日光性皮炎用什么药| 检查头部应该挂什么科| 半夜容易醒是什么原因| 王八和乌龟有什么区别| 台湾什么时候回归的| 悠是什么意思| 枸杞不能和什么一起吃| 1964年属什么的| 意思是什么意思| 贲门不舒服有什么症状| 舌苔厚腻吃什么药| 力不从心是什么意思| 喝什么可以减肥瘦肚子| 软开是什么| 倒膜是什么意思| 菊花什么时候开花| 牡丹花有什么颜色| 左眼皮跳什么预兆| 新股配号数量是什么意思| 化疗是什么样的过程| 二郎神叫什么名字| 什么人不能吃黄精| perry是什么意思| 孕妇吃什么是补铁的| 脚掌痒是什么原因| 小美女是什么意思| 前列腺炎不能吃什么| 五什么六什么的成语| 什么炒肉好吃| 咳嗽吃什么食物好得最快最有效| 非特异性阴道炎是什么意思| 精液发黄是什么原因| 隐晦是什么意思| 龙头龟身是什么神兽| 吃什么补充膝盖润滑液| 辣子鸡属于什么菜系| 什么牌子的助听器好| 金钱龟吃什么食物| 无菌敷贴是干什么用的| dose是什么意思| 什么鱼最好吃| 一九八三年属什么生肖| 雷达是什么| 红豆杉是什么植物| 手总是发麻是什么原因| 物理压榨油是什么意思| 天天晚上睡觉做梦是什么原因| 小孩口臭吃什么药| 巴基斯坦是什么人种| 621什么星座| ig是什么意思| 梦见老人死了又活了是什么意思| 生二胎应该注意什么| 下海什么意思| 簸箕是什么意思| 女人舌苔厚白吃什么药| 脸上反复长痘是什么原因| 王力是什么字| 鑫字属于五行属什么| 肠镜活检意味着什么| 为什么会得淋巴肿瘤| 肺和大肠相表里是什么意思| 小孩手麻是什么原因| 伤口溃烂不愈合用什么药| 牙疼吃什么水果好| 喉咙卡鱼刺挂什么科| 高压和低压差值在什么范围正常| 前列腺增大是什么意思| 胆囊结石是什么症状| 本科是什么学历| 头伏吃什么| 紫荆花什么时候开| 腿抽筋是什么原因造成的| 苹果像什么| 脑白质是什么病| 前列腺有什么症状| 喝冰糖水有什么好处和坏处| 肾上腺素是什么东西| 情人总分分合合是什么歌| 为什么会偏头痛| 乌龟爱吃什么| 口腔溃疡用什么药治疗| 倒贴是什么意思| 言字旁与什么有关| 舌头裂痕是什么原因| 渐行渐远是什么意思| 梦到前妻预示什么| 益气养阴是什么意思| tp是什么| b群链球菌是什么意思| 血月代表什么| 痔疮是什么原因| 石斛什么人不适合吃| lauren是什么意思| 尿蛋白两个加号是什么意思| 鸡冲什么生肖| 属马女和什么属相最配| 农历七月初六是什么星座| 黄风怪是什么动物| 人活着什么最重要| 属猪和什么属相相克| j是什么| 不什么好什么| 什么算高危性行为| 菠萝有什么功效和作用| 什么的田野| 屎壳郎为什么要推粪球| 心脏t波改变是什么意思| 肺部结节挂什么科| 立秋是什么时候| 梦见着大火了是什么征兆| 人为什么会哭| 小便不利什么意思| 梦见自己掉牙齿是什么征兆| 人中龙凤下一句是什么| 安然无恙是什么意思| 成年人改名字需要什么手续| 72岁属什么生肖| 手链断了是什么预兆| 上面白下面本念什么| 手脱皮用什么药膏最好| 夭折是什么意思| 月经每个月都推迟是什么原因| 立是什么意思| 小孩睡觉说梦话是什么原因| 荷叶和什么搭配最减肥| 118代表什么意思| 12度穿什么衣服| 白酒是什么时候出现的| 父亲节送什么| 孩提是什么意思| 虎什么龙什么| 孕酮低对胎儿有什么影响| 下焦湿热吃什么中成药| 盼头是什么意思| 幽门螺旋杆菌有什么危害| 朋友越来越少暗示什么| 看眼睛挂什么科| 相对是什么意思| 湿疹为什么要查肝功能| 囊内可见卵黄囊是什么意思| 什么数码相机好| 无伤大雅是什么意思| 乌龙茶适合什么季节喝| 肚脐眼左边是什么部位| 许嵩为什么叫vae| 女性尿路感染吃什么药好得快| 西游记是什么时候写的| 胆红素偏高挂什么科| 今年夏天为什么这么热| 葡萄是什么季节的水果| 杀青了是什么意思| 古代地龙是什么| 命门是什么意思| 开除公职是什么意思| 同房干涩什么原因导致的| 覆盆子有什么功效| 左眼跳是什么预兆| 盆腔炎吃什么消炎药效果好| 钛色是什么颜色| 牙髓是什么| 双氧奶是什么| 不是经期有少量出血是什么原因| 玉米须能治什么病| 一个三点水一个令念什么| 慢性胃炎和浅表性胃炎有什么区别| 什么叫牙齿根管治疗| 必承其重上一句是什么| 手心脚心热是什么原因| 夜间睡觉口干口苦是什么原因| 四月是什么星座| 蟑螂中药名称叫什么| 康康是什么意思| 欢乐海岸有什么好玩的| 清风明月是什么意思| dxm是什么药| 打仗是什么意思| 散光有什么症状| 飞地是什么意思| 小麦粉可以做什么吃的| 老人头发由白变黑是什么原因| 棘突是什么意思| 独白什么意思| 蓝莓什么季节成熟| 九二年属什么| 咖喱是什么做的| 老人爱睡觉是什么原因| 吃什么补蛋白最快| 态生两靥之愁中靥指什么| 61是什么意思| 离歌是什么意思| 抑郁症挂什么科| 2006属什么生肖| itp是什么意思| 文联主席是什么级别| 长期吸烟容易引起什么疾病| 神经外科和神经内科有什么区别| 唐僧代表什么生肖| 淋巴门消失是什么意思| 冰妹什么意思| 的意思是什么| hpv检查挂什么科| 羡慕的什么| 十二月八号是什么星座| 蚕丝衣服用什么洗最好| 放臭屁是什么原因| 什么是湿热体质| 心影稍大是什么意思| 孩子出汗多是什么原因| 石女是什么| 晚上睡不着是什么原因引起的| 现充什么意思| 吃什么食物对心脏有好处| 一个口一个塞念什么| 酸菜炒什么好吃| 穹窿是什么意思| 圣母娘娘是什么神| 阴道出血用什么药| 好马不吃回头草是什么意思| 百度
AUTOSSH(1) General Commands Manual AUTOSSH(1)

心脏是什么组织

百度 他要求杜心五做到意、气、内功、外功,浑然一体。

autosshmonitor and restart ssh sessions

autossh [-V] [-M port[:echo_port]] [-f] [SSH_OPTIONS]

autossh is a program to start a copy of ssh and monitor it, restarting it as necessary should it die or stop passing traffic.

The original idea and the mechanism were from rstunnel (Reliable SSH Tunnel). With version 1.2 of autossh the method changed: autossh uses ssh to construct a loop of ssh forwardings (one from local to remote, one from remote to local), and then sends test data that it expects to get back. (The idea is thanks to Terrence Martin.)

With version 1.3, a new method is added (thanks to Ron Yorston): a port may be specified for a remote echo service that will echo back the test data. This avoids the congestion and the aggravation of making sure all the port numbers on the remote machine do not collide. The loop-of-forwardings method remains available for situations where using an echo service may not be possible.

autossh tries to distinguish the manner of death of the ssh process it is monitoring and act appropriately. The rules are:

1.
If the ssh process exited normally (for example, someone typed "exit" in an interactive session), autossh exits rather than restarting;
2.
If autossh itself receives a SIGTERM, SIGINT, or a SIGKILL signal, it assumes that it was deliberately signalled, and exits after killing the child ssh process;
3.
If autossh itself receives a SIGUSR1 signal, it kills the child ssh process and starts a new one;
4.
Periodically (by default every 10 minutes), autossh attempts to pass traffic on the monitor forwarded port. If this fails, autossh will kill the child ssh process (if it is still running) and start a new one;
5.
If the child ssh process dies for any other reason, autossh will attempt to start a new one.

If the ssh session fails with an exit status of 1 on the very first try, autossh

1.
will assume that there is some problem with syntax or the connection setup, and will exit rather than retrying;
2.
There is a "starting gate" time. If the first ssh process fails within the first few seconds of being started, autossh assumes that it never made it "out of the starting gate", and exits. This is to handle initial failed authentication, connection, etc. This time is 30 seconds by default, and can be adjusted (see the AUTOSSH_GATETIME environment variable below). If AUTOSSH_GATETIME is set to 0, then both behaviours are disabled: there is no "starting gate", and autossh will restart even if ssh fails on the first run with an exit status of 1. The "starting gate" time is also set to 0 when the -f flag to autossh is used.

If the ssh connection fails and attempts to restart it fail in quick succession, autossh will start delaying its attempts to restart, gradually backing farther and farther off up to a maximum interval of the autossh poll time (usually 10 minutes). autossh can be "prodded" to retry by signalling it, perhaps with SIGHUP ("kill -HUP").

As connections must be established unattended, the use of autossh requires that some form of automatic authentication be set up. The use of RSAAuthentication with ssh-agent is the recommended method. The example wrapper script attempts to check if there is an agent running for the current environment, and to start one if there isn't.

It cannot be stressed enough that you must make sure ssh works on its own, that you can set up the session you want before you try to run it under autossh

If you are tunnelling and using an older version of ssh that does not support the -N flag, you should upgrade (your version has security flaws). If you can't upgrade, you may wish to do as rstunnel does, and give ssh a command to run, such as "sleep 99999999999".

port[:echo_port]
specifies the base monitoring port to use. Without the echo port, this port and the port immediately above it ( port + 1) should be something nothing else is using. autossh will send test data on the base monitoring port, and receive it back on the port above. For example, if you specify "-M 20000", autossh will set up forwards so that it can send data on port 20000 and receive it back on 20001.

Alternatively, a port for a remote echo service may be specified. This should be port 7 if you wish to use the standard inetd echo service. When an echo port is specified, only the specified monitor port is used, and it carries the monitor message in both directions.

Many people disable the echo service, or even disable inetd, so check that this service is available on the remote machine. Some operating systems allow one to specify that the service only listen on the localhost (loopback interface), which would suffice for this use.

The echo service may also be something more complicated: perhaps a daemon that monitors a group of ssh tunnels.

Setting the monitor port to 0 turns the monitoring function off, and autossh will only restart ssh upon ssh's exit. For example, if you are using a recent version of OpenSSH, you may wish to explore using the ServerAliveInterval and ServerAliveCountMax options to have the SSH client exit if it finds itself no longer connected to the server. In many ways this may be a better solution than the monitoring port.

causes autossh to drop to the background before running ssh. The -f flag is stripped from arguments passed to ssh. Note that there is a crucial difference between -f with autossh, and -f with ssh: when used with autossh ssh will be unable to ask for passwords or passphrases. When -f is used, the "starting gate" time (see AUTOSSH_GATETIME) is set to 0.
causes autossh to display its version number and exit.

Other than the flag to set the connection monitoring port, autossh uses environment variables to control features. ssh seems to be still collecting letters for options, and this seems the easiest way to avoid collisions.

If this variable is set, the logging level is set to to LOG_DEBUG, and if the operating system supports it, syslog is set to duplicate log entries to stderr.
Specifies the time to wait before the first connection test. Thereafter the general poll time is used (see AUTOSSH_POLL below).
Specifies how long ssh must be up before we consider it a successful connection. The default is 30 seconds. Note that if AUTOSSH_GATETIME is set to 0, then not only is the gatetime behaviour turned off, but autossh also ignores the first run failure of ssh. This may be useful when running autossh at boot.
Specifies the log level, corresponding to the levels used by syslog; so 0-7 with 7 being the chattiest.
Specifies that autossh should use the named log file, rather than syslog.
Sets the maximum number of seconds that the program should run. Once the number of seconds has been passed, the ssh child will be killed and the program will exit.
Specifies how many times ssh should be started. A negative number means no limit on the number of times ssh is started. The default value is -1.
Append message to echo message sent when testing connections.
(Cygwin only.) When set to "yes" , autossh sets up to run as an NT service under cygrunsrv. This adds the -N flag for ssh if not already set, sets the log output to stdout, and changes the behaviour on ssh exit so that it will restart even on a normal exit.
Specifies the path to the ssh executable, in case it is different than the path compiled in.
Write autossh pid to specified file.
Specifies the connection poll time in seconds; default is 600 seconds. Unless AUTOSSH_FIRST_POLL is used, the first poll time will set to match the poll time. If the poll time is less than twice the network timeouts (default 15 seconds) the network timeouts will be adjusted downward to 1/2 the poll time.
Sets the connection monitoring port. Mostly in case ssh appropriates -M at some time. But because of this possible use, AUTOSSH_PORT overrides the -M flag. A value of 0 turns the monitoring function off.

There are two particular OpenSSH options that are useful when using autossh : ExitOnForwardFailure=yes on the client side to make sure forwardings have succeeded when autossh assumes the connection is setup properly. ClientAliveInterval on the server side to make sure the listening socket is closed on the server side if the connection closes on the client side.

autossh was written by Carson Harding.

ssh(1), ssh_config(5,) sshd_config(5,) ssh-add(1), ssh-agent(1), ssh-keygen(1), cygrunsrv(1).

March 18, 2018 Linux 6.13.7-arch1-1
脚底褪皮是什么原因 新生儿甲状腺偏高有什么影响 摇呼啦圈有什么好处 阴囊瘙痒是什么原因 什么什么大地
金银花有什么功效和作用 文殊菩萨保佑什么 小朋友眼袋很重是什么原因 退步是什么意思 12.31什么星座
湿气是什么原因引起的 打火机的气体是什么 肺结节增殖灶什么意思 随笔是什么意思 脾大吃什么药能缩小
小孩睡觉流鼻血是什么原因引起的 文房四宝是指什么 早搏吃什么药效果好 什么叫自然拼读 同人是什么意思
喉咙发苦是什么原因造成的hcv9jop3ns7r.cn 指标到校是什么意思shenchushe.com 脑梗有什么后遗症beikeqingting.com 为什么会甲状腺肿大helloaicloud.com 什么蔬菜补铁hcv9jop1ns3r.cn
身上泡疹是什么引起的hcv8jop5ns6r.cn 易孕体质有什么特征luyiluode.com 什么车最长hcv7jop9ns1r.cn 胸外科主要看什么病hcv9jop2ns8r.cn 冻顶乌龙茶属于什么茶hcv9jop4ns5r.cn
低聚糖是什么hcv8jop3ns8r.cn 海蜇是什么hcv8jop1ns6r.cn 搬家有什么讲究hcv8jop3ns0r.cn 早餐吃什么最有营养又减肥hcv8jop8ns4r.cn 手足口疫苗叫什么名字hcv8jop6ns0r.cn
茶多酚是什么hcv9jop2ns4r.cn 阴道松弛吃什么药wuhaiwuya.com 浪琴名匠系列什么档次helloaicloud.com 湿厕纸是干什么用的hcv8jop4ns2r.cn 什么东西醒酒hcv8jop7ns5r.cn
百度