openssl dhparam -out dhparams.pem 4096
Start screen using
screen -d -R session_tomcat
Replace session_tomcat with any other helpful name for the session you’re about to create.
Sharing your Session
Ask your friend to connect using (assuming they are logged in using the same user account):
screen -x session_tomcat
Now it’s simply magical. Multiple persons can type and work on the same terminal – it works best when you’re coordinating over the phone. Note that the dimensions of your terminal output will be the same for every user – to change it, press Ctrl-A and then capital F. This will make the screen output fit your current terminal size, and change it to that size for every connected user.
ausgewählte dns-server in DE
184.108.40.206 Chaos Computer Club Berlin
220.127.116.11 FoeBuD e.V.
18.104.22.168 German Privacy Foundation e.V.
22.214.171.124 German Privacy Foundation e.V.
126.96.36.199 German Privacy Foundation e.V.
188.8.131.52 German Privacy Foundation e.V.
sudo ssh -L localhost:port:localhost:remote-port user@host -N
set remote-port to the proxy port (3128 for squid) on the server
set port to any local port (e.g. 8000) on the client and configure proxy settings to localhost:port
set remote-port to the port to be tunnelled on the server
set port to any local port (e.g. 8001) on the client and use it with localhost:port