How to send SIGINT to a remote process over SSH?

半世苍凉 提交于 2019-11-28 09:10:09
$ ssh -t foo.bar.com gdb
...
(gdb) ^C
Quit

Try signal SIGINT at the gdb prompt.

It looks like you're doing ctrl+c. The problem is that your terminal window is sending SIGINT to the ssh process running locally, not to the process on the remote system.

You'll have to specify a signal manually using the kill command or system call on the remote system.

or more conveniently using killall

$killall -INT gdb

Can you run a terminal on the remote machine and use kill -INT to send it the signal?

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!