Reverse SSH tunnel

Access Linux SSH server behind NAT via reverse SSH tunnel on relay server http://xmodulo.com/access-linux-server-behind-nat-reverse-ssh-tunnel.html https://www.everythingcli.org/ssh-tunnelling-for-fun-and-profit-autossh/ http://logan.tw/posts/2015/11/15/autossh-and-systemd-service/ • You have your Linux server running at home behind a NAT router without public IP address. • You want to SSH to the home server from outside Internet. • SSH port forwarding is not an option in this … Read more

SSH RSA fingerprint

SSH RSA fingerprint (-l means “list” instead of create a new key, -f means “filename”): ssh-keygen -lf /etc/ssh/ssh_host_rsa_key.pub

How to fix “X11 forwarding request failed on channel 0″

https://joshua.hoblitt.com/rtfm/2013/04/how_to_fix_x11_forwarding_request_failed_on_channel_0/ I’m using Ubuntu 12.04. The X11 forwarding is enabled in /etc/ssh/sshd_config (X11Forwarding yes). As I stared more verbose mode: ssh -vvv -X remotehost I received following error: X11 forwarding request failed on channel 0 The solution is to add following to configuration file /etc/ssh/sshd_config: X11UseLocalhost no Do not forget to restart ssh daemon: service … Read more

SSH Server configuration

Change following settings: /etc/ssh/sshd_config Port 22 Protocol 2 PermitRootLogin no RSAAuthentication yes PubkeyAuthentication yes PermitEmptyPasswords no X11Forwarding yes UsePAM yes UseDNS no

Fix delay in SSH Login

http://www.unixmen.com/fix-delay-in-ssh-login/ /etc/ssh/sshd_config UseDNS no /etc/resolv.conf options single-request-reopen /etc/init.d/ssh restart

FreeNX remote desktop access

https://help.ubuntu.com/community/FreeNX FreeNX is a system that allows you to access your desktop from another machine over the Internet. You can use this to login graphically to your desktop from a remote location. One example of its use would be to have a FreeNX server set up on your home computer, and graphically logging in to … Read more

SSH Port Forwarding (SSH Tunneling)

http://www.linuxhorizon.ro/ssh-tunnel.html Syntax: ssh -L localport:host:hostport user@ssh_server -N where: -L – port forwarding parameters (see below) localport – local port (chose a port that is not in use by other service) host – server that has the port (hostport) that you want to forward hostport – remote port -N – do not execute a remote command, … Read more

Linux mini-howto

# Linux je operační systém s monolitickým jádrem. Moduly jsou objektové soubory, dynamické části jádra. Umožňují rozšířit za běhu funkce stávajícího jádra (LKM = Linux Loadable Kernel Module). # daemons basic operations /etc/init.d/apache status /etc/init.d/apache restart # filter file content cat /var/log/… | grep (192.168….) -v 9190 | grep 192.168…. | more tail -f /var/log/… … Read more