Table of Contents

SSH

Commands

On a SSH server you should add this firewall rule (for example using the Uncomplicated Firewall):
sudo ufw allow proto tcp from 192.168.178.0/24 to any port 22

Files

Example

See below for a ~/.ssh/config example, which uses client keep-alive and connection multiplexing (for a particular host).

Host <name>
    HostName <host>
    IdentityFile ~/.ssh/id_rsa
    User <user>
    EscapeChar none
# multiplexing
    ControlPath ~/.ssh/controlmasters/%r@%h:%p
    ControlMaster auto
    ControlPersist 3h
# keep-alive
    TCPKeepAlive yes
    ServerAliveInterval 15
    ServerAliveCountMax 4
1)
This can be performed with seahorse too.
2)
Add this content at server side to (a single line of) ~/.ssh/authorized_keys!
3)
DSA is deprecated.