VisualVM over ssh

You either need to run jstatd on the remote side, or specify a JMX connection using host:port. Jstatd: jstatd -J-Djava.security.policy=permissions.txt [-p port] After that: add a remote connection to the target machine, and on the properties of that remote connection configure the jstatd connection. (permissions.txt contains for example this: grant { permission java.security.AllPermission; }; Edit: … Read more

Automatically (or more easily) reconnect to a screen session after network interruption

Does the -t option do what you want? -t Force pseudo-tty allocation. This can be used to execute arbi- trary screen-based programs on a remote machine, which can be very useful, e.g. when implementing menu services. Multiple -t options force tty allocation, even if ssh has no local tty. So: laptop> ssh -t server.com screen … Read more