This tutorial shows you how you solve “There are stopped jobs” custom made “logout” in the terminal (SSH). What does this message mean in Linux And what you need to do so you can disconnect from the terminal, see step by step in the tutorial below.
content
Before you see how you can disconnect from a terminal to order “logout“, it is good to know what this message means.
The message “There are stopped jobs” It appears when you try to disconnect from a terminal where there are processes running or waiting for the interruption (Ctrl+C) or the continuation (fg) lor.
These are the processes between the terminal and your client to connect to that system. Connection SSH by Putty or through Terminal (macOS). 
So this is not an error message, but only a message that informs the user as has “jobs” in work, which were not saved or closed. Most of the time this message appears when you edit text files with “vim“, that you did not save, but you left the editing screen.
How to solve “There are stopped jobs” custom made “logout” in SSH (Terminal)
To be able to disconnect with your order “logout“, normally, you must finish or interrupt those processes. 
1. Execute the command “jobs” in the terminal. This order will display the list of processes in waiting or in execution. 
2. Next, after identifying the open process, you have several variants:
Returning the process in execution
Use your order “fg” to restore the stopped process in execution (job) and then you finish it by the combination of keys Ctrl+C.
Move the process in background to avoid “There are stopped jobs”
Execute the command “bg” to move the process in the background. Now you will be able to close the connection to the terminal via Comnada “logout” without stopping the open process.
Finish the load association with the current shell
The order can be used “disown“. This command eliminates an job associated with the current shell, so you can close the connection session at the terminal. If you execute an order in the terminal and want to keep it active even after you close the terminal, you can use the order with confidence “disown“.
The forced closure of the work task
This method is not recommended, but if you want, you can forcefully close the task.
Identify the PID process with the command:
ps aux | grep process_nameFinish the process forced:
kill -9 PID_numberAfter any of the steps in the tutorial above, you will no longer be greeted by the message “There are stopped jobs” When you execute your order “logout” to close the session in a terminal. 
 
			