Quote:
i have noticed if i start gnu screen on the remote computer, the connection will last.
|
I think it is not the
connection that is "lasting", it is the
session
If you
ssh to a normal shell and run some processes, and the
connection is dropped (maybe by your ISP) then you will be logged out and all your processes will be killed.
But by running
screen your processes started within
screen will be kept alive until you next re-establish the
ssh connection.
That is what
screen is for.
[Off Topic]
One of my servers starts a
vnc server on display:1 at boot time.
I can log in remotely and start a GUI session on the server (but
displayed locally) with
vncviewer servername:1
If I close the
vncviewer window on my local machine, the
vncserver is still running on the server, and I can reconnect to it with
vncviewer servername:1 All my windows, applications etc. are just as I left them. Very useful.
[/Off Topic]
Quote:
I have been wanting to use sshfs to mount a remote folder, but do not want it kicked off.
|
You probably won't be "kicked off", the remote directory will probably reappear when the connection is re-established. You can test this behaviour yourself (pull your ethernet cable - the directory becomes inaccessible, reconnect it, wait a minute or so, does it reappear?)
If this isn't the case, you could set up a cron job to test (every few minutes?) if the remote directory is available. If not, an attempt could be made to remount it.