summaryrefslogtreecommitdiffstats
path: root/software/ssh.page
blob: 920bdab49687c8134d4e245efd8da9e3562b8103 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
================
SSH
================

Escape Sequences
---------------------

~? (tilde question mark) displays the escape sequences.  Notably, ~. kills the
connection (eg, if the other end has hung), and ~^Z backgrounds the shell (so
you can mess around locally). 

``~/.ssh/config``
------------------------

To "reuse" a single SSH connection between multiple shells/pipes/scp::
    
    ControlPath ~/.ssh/master-%l-%r@%h:%p
    ControlMaster auto

Enable compression over remote connections with fast machines::

    Compression yes


SSH Key Agent Timeout
-----------------------------
``ssh-agent`` has an argument (``-t``) to timeout private keys. You'll need to
enable this flag in your X initialization file somewhere... on Ubuntu it seems
to be in ``/etc/X11/Xsession.d/90x11-common_ssh-agent`` (set ``SSHAGENTARGS='-t
6h'`` for six hour timeout).