cannot detach from SSH secure shell by "ctrl+A+D"

72 views Asked by At

I am new to SSH secure shell I run a code in a linux server by my PC windows base. Previously when I used "ctrl+A+D", I could be detached from the server and the computation continued no matter what in the server. Now, when I type "ctrl+A+D", I get "^A" and cannot detach too. what's the problem?

1

There are 1 answers

0
Pratap On

You can use nohup command to allow a process to run even after the shell is exited.

SIGHUP is a signal sent to a process when its controlling terminal is closed. nohup runs a command immune to hangups and its usage is as follows.

nohup <command> &

It is also important that you redirect stdin, stdout and stderr for the process.