2
I have opened a ssh session to remote computer using
ssh root@<ip>
I tried to run some program on remote machine. e.g.
tail -f /var/log/log.txt
But when i press ctrl-c
or ctrl-z
that program is not killed/suspended. I couldn't able to get control out of that process in terminal.
@Bungicasse tried that now, still not able to kill – akshay – 2017-01-07T14:39:11.917
Does the
tail -f
continue to output data? It may be that the terminal session crashes (either some sort of remote timeout or pipe issue) – stuts – 2017-01-09T14:20:44.530@stuts yes tail is still running. If i login to another session and kill tail, i can access the terminal – akshay – 2017-01-09T14:31:46.950
What OS are the source and destination systems? Does this problem effect all user accounts? I'm wondering if there could be a custom terminal/shell profile or something that overrides shortcuts on the destination system. – stuts – 2017-01-09T14:34:00.313
@stuts source is redhat linux and destination is QNX PPC. telnet session is working properly – akshay – 2017-01-09T14:42:25.323
What kind of system is the QNX PPC? Does it work when you try Ctrl-Break (the Pause/Break key)? Do the suspension/resume keys work (Ctrl-S & Ctrl-Q)? Do you have the latest version of the OS installed (may be a bug in a package)? Has the handler for ctrl-c been changed (see this forum post)?
– stuts – 2017-01-09T15:08:38.530I am sure there is no change in signal handler, otherwise Ctrl-c in telnet session wouldn't have worked. also instead of
tail
this time i triedcat>newfile with Ctrl-c in ssh session
, it is not working but working as expected in telnet session. @stuts – akshay – 2017-01-09T15:48:26.770Do you provide any arguments to your ssh command? Could you try
-t
argument tossh
as this should forward the raw ctrl-c to the server. – stuts – 2017-01-09T15:54:59.800@stuts
ssh -t
is also not working. One more thing i noticed is in terminal(ksh) if I press ctrl-c cursor moves and Ctrl-D close the session but in foreground process it is not taking the Ctrl-c or Ctrl-d – akshay – 2017-01-09T16:13:21.680Is that on the client or the server? Do you see
^C
print to the terminal? – stuts – 2017-01-09T16:20:42.230I encounter the same issue. Now I have to using the following commands to terminate the tail process
ctrl - z
thenkill %1
– Ryan Lv – 2019-12-18T10:32:13.783