UPDATE: For an actual answer see zero_r’s answer below
This isn’t an answer, but a workaround. Use screen.
When you first log in, run screen. You get another shell, run commands in that. If you’re disconnected, the screen process keeps the terminal alive so that your shell and the processes it is running don’t fall over. When you reconnect, run ‘screen -r’ to resume.
There’s a bunch more to configuring and using screen, but the above should workaround your problem.
Related Posts:
- Can I nohup/screen an already-started process?
- Kill detached screen session [closed]
- mysql_config not found when installing mysqldb python interface
- ssh: Could not resolve hostname [hostname]: nodename nor servname provided, or not known
- Pseudo-terminal will not be allocated because stdin is not a terminal
- X11 forwarding request failed on channel 0
- mysql_config not found when installing mysqldb python interface
- Pseudo-terminal will not be allocated because stdin is not a terminal
- screen Cannot open your terminal ‘/dev/pts/0’ – please check
- How to download a file from server using SSH?
- connect to host localhost port 22: Connection refused
- Getting stty: standard input: Inappropriate ioctl for device when using scp through an ssh tunnel
- Terminal Multiplexer for Microsoft Windows – Installers for GNU Screen or tmux
- EC2 ssh Permission denied (publickey,gssapi-keyex,gssapi-with-mic)
- How to configure WP filesystem access in Linux (Ubuntu Server)?
- Can I automatically add a new host to known_hosts?
- Moving an already-running process to Screen
- Permission denied (publickey). SSH from local Ubuntu to Amazon EC2 server
- Is it normal to get hundreds of break-in attempts per day?
- how to disable SSH login with password for some users?
- Is it possible to detach a process from its terminal? (Or, “I should have used screen!”) [duplicate]
- Keeping a linux process running after I logout
- How to check if an RSA public / private key pair match
- how do you create an ssh key for another user?
- How to re-order windows, change the scroll shortcut, and modify the status bar contents in GNU Screen?
- “POSSIBLE BREAK-IN ATTEMPT!” in /var/log/secure — what does this mean?
- Does getting disconnected from an SSH session kill your programs?
- Can you have more than one ~/.ssh/config file?
- Can I send some text to the STDIN of an active process running in a screen session?
- SSH from A through B to C, using private key on B [closed]
- Show all users and their groups/vice versa
- SSHFS mount that survives disconnect
- Temporarily ignore my `~/.ssh/known_hosts` file?
- How can I fully log all bash scripts actions?
- What’s wrong with always being root?
- Hundreds of failed ssh logins
- protocol version mismatch — is your shell clean?
- How to set the environmental variable LD_LIBRARY_PATH in linux
- What’s a .sh file?
- How to fix ‘sudo: no tty present and no askpass program specified’ error?
- How do I grep recursively?
- What does pss mean in /proc/pid/smaps
- apt-get error: Sub-process /usr/bin/dpkg returned an error code (1)
- How do I grep recursively?
- How to extract C source code from .so file?
- How to substitute shell variables in complex text files
- “sed” command in bash
- How to exclude a directory in find . command
- How can I find all *.js file in directory recursively in Linux?
- Argument list too long error for rm, cp, mv commands
- Difference between using “chmod a+x” and “chmod 755”
- Python subprocess.Popen “OSError: [Errno 12] Cannot allocate memory”
- How to open some ports on Ubuntu?
- Given two directory trees, how can I find out which files differ by content?
- What does it mean to mount a file system in linux?
- -bash: fork: Cannot allocate memory
- Explanation of polkitd Unregistered Authentication Agent
- Bash script: bad interpreter
- How do I find the MySQL my.cnf location
- PHP and mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
- How to grep and replace
- What does “&” at the end of a linux command mean?
- How to recursively download a folder via FTP on Linux
- error : storage class specified for parameter
- httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
- How to include file in a bash shell script
- Does Mac OS X use Linux?
- bash sh – command not found
- Hosting multiple WordPress sites on single server – best practices?
- Can scp copy directories recursively?
- Copying a large directory tree locally? cp or rsync?
- What are the functional differences between .profile .bash_profile and .bashrc
- Check if port is open or closed on a Linux server?
- Why does my hostname appear with the address 127.0.1.1 rather than 127.0.0.1 in /etc/hosts?
- Linux command to inspect TXT records of a domain [closed]
- When does `cron.daily` run?
- How to run a command multiple times, using bash shell?
- What does a + mean at the end of the permissions from ls -l?
- How do I sleep for a millisecond in bash or ksh
- What does ‘set -e’ do, and why might it be considered dangerous?
- What version of RHEL am I using?
- What useful things can one add to one’s .bashrc? [closed]
- How do you make it obvious you are on a production system?
- How to add a timestamp to bash script log?
- How can I verify if TLS 1.2 is supported on a remote web server from the RHEL/CentOS shell?
- Mount CIFS Host is down
- List of files installed from apt package
- How to copy a large number of files quickly between two servers
- Allow SFTP but disallow SSH?
- How can I export the privileges from MySQL and then import to a new server?
- Is there a directory equivalent of /dev/null in Linux?
- How can I get processor/RAM/disk specs from the Linux command Line? [duplicate]
- Is there a way to see the execution tree of systemd?
- How to determine the hostname from an IP address in a Windows network?
- create home directories after create users
- How do I redirect subdomains to a different port on the same server?
- Running Cron every 2 hours [duplicate]
- How to check the physical status of an ethernet port in Linux?
- What does “debconf: delaying package configuration, since apt-utils is not installed” mean?
- In Linux, what is the difference between “buffers” and “cache” reported by the free command?