Now we need to create the tunnel between the local machine and the remote machine.
ssh -L4005:127.0.0.1:4005 firstname.lastname@example.org
That ssh invocation creates an ssh tunnel between the port 4005 on our local machine and the port 4005 on the remote machine4.
Finally we can start SLIME:
M-x slime-connect RET RET
The RET RET sequence just means that we want to use the default
127.0.0.1) and the default port (
though we’re connecting to a remote machine the ssh tunnel fools Emacs
into thinking it’s actually
default swank listens for incoming connections on port 4005, had we
:port parameter to
swank:create-server we’d be
using that port number instead