Keep SSH session alive while computer sleep? [closed]

I found the answer it depends on tcp keepalive settings: For the list of available TCP settings (FreeBSD 4.8 an up and 5.4): sysctl -A | grep net.inet.tcp net.inet.tcp.keepidle – Amount of time, in milliseconds, that the (TCP) connection must be idle before keepalive probes (if enabled) are sent. net.inet.tcp.keepintvl – The interval, in milliseconds, …

Read more

How to view html file in remote unix server?

It is possible, but with some playing around on the server. Once you have ssh’ed into the server, install a web server in that box. Say the file is named index.html, you should make it available at the URL http://localhost:8000/index.htmlor port number can be anything. The simplest method I can think of starting a web …

Read more

git clone from local to remote

To answer your first question, yes, you can. Suppose the remote directory is ssh://user@host/home/user/repo. This must be a git repository, create that with git init –bare or scp your local repo.git (can be created with git clone) directory to remote. Then do: git remote add origin ssh://user@host/home/user/repo git push –all origin This will push all …

Read more