SSH Tunnel
ssh -R 8080:localhost:80 user@publicip ssh -R remote-port:pc-in-local-network:port-on-pc-in-local-network user@publicip
ssh -R 8080:localhost:80 user@publicip ssh -R remote-port:pc-in-local-network:port-on-pc-in-local-network user@publicip
Useful commands Remove dangling images docker rmi $(docker images --quiet --filter "dangling=true") Update Composer Project Dependencies docker run --rm -ti -v $PWD:/app -v /home/anton/.ssh/:/root/.ssh composer update --ignore-platform-reqs --no-scripts echo "" > $(docker inspect --format='{{.LogPath}}' <container_name_or_id>)
ssh-keygen -t rsa -b 4096 ssh-copy-id root@external-server.org Now login to your external server via: ssh root@external-server.org
I recently wanted some kind of high availability for my private websites and applications, so I decided to setup a second server at my dads office as a failover system. Install GlusterFs for file syncing. The latest stable version for me was 3.8, but check the authors site, because GlusterFS is geeting new updates from time to time. It is recommended to use a separate partition for GlusterFS, but as I already got my setup up and runnig on the first node i am only covering the simple way....
TFTP Server Install and Setup Install following packages. sudo apt-get install xinetd tftpd tftp Create /etc/xinetd.d/tftp and put this entry service tftp { protocol = udp port = 69 socket_type = dgram wait = yes user = nobody server = /usr/sbin/in.tftpd server_args = /tftpboot disable = no } Create a folder /tftpboot this should match whatever you gave in server_args. mostly it will be tftpboot sudo mkdir /tftpboot sudo chmod -R 777 /tftpboot sudo chown -R nobody /tftpboot Restart the xinetd service....