Connect to Swank via SSH
A useful technique for remote controlling lisp applications is to use the ability of SLIME to connect to a Swank server over the network.
A Swank server can be started, for example, by loading
"swank" via quicklisp and calling:
Useful keyword arguments of
:port (listens on a different port than 4005) and
:dont-close, which makes Swank listen for subsequent connections after disconnecting.
To connect from SLIME use M-x
slime-connect and enter the address and port of the swank server.
When you are done, disconnect with M-x
If you set up a remote Swank server, don’t to open a port in the remote firewall. Instead, use a closed port and an SSH tunnel instead. This connects the local port 4006 with the port 12345 on the remote machine:
-L creates the tunnel,
-N tells SSH that no actual shell access is needed.
Now you can connect to a remote Swank listening on port 12345 by telling
slime-connect to connect to