Thursday, May 9, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1216  / 3 Years ago, tue, june 29, 2021, 3:47:46

There is a program running infinitely on remote shell, which doesn't give me access to its login shell.(i.e, Whenever I login I see that program running on the console).



I wan't send SIGKILL or SIGSTOP or SIGSEGV etc to stop it via ssh.



Is it possible to send and access the normal shell?


More From » ssh

 Answers
1

If the problem is in /etc/profile, note that, over SSH, it is sourced for interactive shells that SSH itself starts. If you run another command, it is not sourced, even if that command is your shell:



ssh -t user@server bash


When a command is specified, SSH assumes you're not running it interactively, and doesn't allocate a pseudo-tty (which can cause problems with some programs). The -t is needed to tell it to allocate a pty anyway.



All of this is moot if your SSH server uses a ForceCommand option. If it does, no matter what you specify to the ssh command, whatever the server's configured to run will be run.


[#17062] Tuesday, June 29, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
breadoules

Total Points: 212
Total Questions: 118
Total Answers: 120

Location: Dominica
Member since Mon, Jun 22, 2020
4 Years ago
;