Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cygwin ssh gives "Killed by signal 1" on exit

Tags:

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?

like image 806
Rop Avatar asked Sep 28 '12 12:09

Rop


2 Answers

I'm adding a new answer because I have a new solution under different circumstances.

When using the modern ProxyJump directive, there is no place to put the -q, as with ProxyCommand:

Host target
  ProxyJump proxy

Instead of switching back to the more manual jump definition with ProxyCommand, the solution with ProxyJump is to add LogLevel QUIET to a Host proxy definition:

Host target
  ProxyJump proxy
Host proxy
  LogLevel QUIET

which will have the same effect as the -q in ProxyCommand's ssh -q proxy ....

like image 54
Irfy Avatar answered Oct 12 '22 23:10

Irfy


Adding following line to your ~/.ssh/config file can squash that message.

Update: QUIET must be all CAPS & must added for each host in your config.

LogLevel QUIET

Added in first line will squash the message globally. Will only take effect for the specific hosts if it's placed under Host.

like image 34
Hongbo Liu Avatar answered Oct 12 '22 23:10

Hongbo Liu