cygwin ssh给出“由信号1杀死”退出 [英] cygwin ssh gives "Killed by signal 1" on exit

查看:281
本文介绍了cygwin ssh给出“由信号1杀死”退出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用cygwin的ssh从windows登录到linux主机后,
当退出远程shell时,我总是得到讨厌的msg:



通过信号1



我googled,实现它的无害,但仍然恼人...
有人建议你可以通过使用

$ ssh -q ...



但这对我尝试的任何机器都没有影响。



任何人都知道一个解决方案来摆脱这个msg?

解决方案

p>当您通过另一个主机代理您的ssh会话时,会发生这种情况。示例 .ssh / config 文件:

 #打开SSH端口
Host proxy
HostName foo.com

#只能从上述机器访问的机器
主机目标
HostName 192.168.0.12
ProxyCommand ssh代理nc%h%p



当退出 ssh目标 ProxyCommand 中的 ssh 将导致输出。如果你在那里添加 -q ,它将被抑制:

  ProxyCommand ssh -q proxy nc%h%p 

您可能会惊讶这个输出无关与Cygwin - 它也发生在Linux上。


After using cygwin's ssh to login from windows to linux-hosts, when exiting the remote shell, I always get the annoying msg:

"Killed by signal 1"

I googled, and realize its harmless, but still annoying... Some suggested you can get rid of the message by using

$ ssh -q ...

But that has no effect on any of the machines I've tried.

Anyone knows a working solution to get rid of this msg?

解决方案

This happens when you proxy your ssh session through another host. Example .ssh/config file:

# machine with open SSH port
Host proxy
HostName foo.com

# machine accessible only from the above machine
Host target
HostName 192.168.0.12
ProxyCommand ssh proxy nc %h %p

When you exit from an ssh target, the ssh in ProxyCommand will cause the output. If you add the -q there, it will be suppressed:

ProxyCommand ssh -q proxy nc %h %p

You may be surprised that this output has nothing to do with Cygwin -- it happens on Linux as well.

这篇关于cygwin ssh给出“由信号1杀死”退出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆