Category Archives: how to

systemd ssh SOCKS proxy

By | March 6, 2018

There is nothing to say, just example.. cat /etc/systemd/system/ssh-scocks-proxy.service [Unit] Description=Socks proxy via SSH ConditionPathExists=|/usr/bin After=network.target [Service] ExecStart=/usr/bin/ssh -NTC -o ServerAliveInterval=30 -o ExitOnForwardFailure=yes -o StrictHostKeyChecking=no -i -D user@remote-server.com # Restart every >2 seconds to avoid StartLimitInterval failure RestartSec=5 Restart=always [Install] WantedBy=multi-user.target (c) https://gist.github.com/drmalex07/c0f9304deea566842490 (c) https://blog.kylemanna.com/linux/ssh-reverse-tunnel-on-linux-with-systemd/

bind9 log file Ubuntu

By | November 6, 2015

to forward log info from syslog to another file for bind9 server in Ubuntu you have to: add logging section in any name.conf* file: logging { channel bind_log { file “/var/log/named.log”; print-time yes; print-category yes; print-severity yes; }; category default { bind_log;}; category xfer-in { bind_log;}; category xfer-out { bind_log;}; category update { bind_log;}; category… Read More »

start TeamViewer via ssh

By | September 7, 2015

I’ve had situation when I urgently need access to my desktop. And I had only one program for remote control – teamviewer. So here described one of the ways to run it when you have only ssh (i.e. command line):  first of all connect to remote machine via ssh. check if daemon is running fine:… Read More »

start program with GUI via ssh without X-server

By | September 1, 2015

There are a lot of methods, few of them are described below: ssh X-forwarding: Please ensure such parameters are enabled in your ssh server: #Specifies whether TCP forwarding is permitted AllowTcpForwarding yes X11Forwarding yes #Specifies the first display number available for sshd’s X11 forwarding: X11DisplayOffset 10   #sshd should bind the X11 forwarding server to… Read More »