.ssh/config
author Oleksandr Gavenko <gavenkoa@gmail.com>
Tue, 19 Nov 2019 12:20:50 +0200
changeset 930 e867bffa536e
parent 868 e3b5f71d12f0
child 1029 09f23ab46d03
permissions -rw-r--r--
Ping SSH server every 2 min.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
314
d1a4574fa534 This option was disabled to simplify use of port forwarding.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 223
diff changeset
     1
d1a4574fa534 This option was disabled to simplify use of port forwarding.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 223
diff changeset
     2
Host *
71
dcc8c2a63ec3 Revert: Host used for ControlMaster option. Also fix some misspelling.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 70
diff changeset
     3
dcc8c2a63ec3 Revert: Host used for ControlMaster option. Also fix some misspelling.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 70
diff changeset
     4
# Allow sharing of multiple sessions over a single network connection for all
dcc8c2a63ec3 Revert: Host used for ControlMaster option. Also fix some misspelling.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 70
diff changeset
     5
# host. Also don't prompt for password when connection live.
314
d1a4574fa534 This option was disabled to simplify use of port forwarding.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 223
diff changeset
     6
# This option was disabled to simplify use of port forwarding.
d1a4574fa534 This option was disabled to simplify use of port forwarding.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 223
diff changeset
     7
# You can enable it and pass "-s none" to ssh.
d1a4574fa534 This option was disabled to simplify use of port forwarding.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 223
diff changeset
     8
# ControlPath ~/.ssh/sock_%r@%h_%p
d1a4574fa534 This option was disabled to simplify use of port forwarding.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 223
diff changeset
     9
# ControlMaster auto
66
486c0203dc2d Added comments.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 65
diff changeset
    10
930
e867bffa536e Ping SSH server every 2 min.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 868
diff changeset
    11
ServerAliveInterval 120
e867bffa536e Ping SSH server every 2 min.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 868
diff changeset
    12
66
486c0203dc2d Added comments.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 65
diff changeset
    13
# This by default.
486c0203dc2d Added comments.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 65
diff changeset
    14
# UserKnownHostsFile ~/.ssh/known_hosts
69
0e2366650523 About compression.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 67
diff changeset
    15
71
dcc8c2a63ec3 Revert: Host used for ControlMaster option. Also fix some misspelling.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 70
diff changeset
    16
# Enable compression. To turn on it manually invoke ssh with -C key.
88
0b8ef20d38f0 I need compression for slow home 3G/GPRS connection.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 71
diff changeset
    17
Compression yes
70
637657d3b402 Prefer public key authentication.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 69
diff changeset
    18
637657d3b402 Prefer public key authentication.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 69
diff changeset
    19
# Prefer public key authentication.
637657d3b402 Prefer public key authentication.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 69
diff changeset
    20
PreferredAuthentications publickey,keyboard-interactive,password
637657d3b402 Prefer public key authentication.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 69
diff changeset
    21
PubkeyAuthentication yes
222
8111e9e127f5 Bypass locale env vars to remote host.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 89
diff changeset
    22
8111e9e127f5 Bypass locale env vars to remote host.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 89
diff changeset
    23
# Bypass locale env vars to remote host.
223
1ce3922d21e6 Add doc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 222
diff changeset
    24
# Add to remote opensshd: AcceptEnv LANG LC_*
222
8111e9e127f5 Bypass locale env vars to remote host.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 89
diff changeset
    25
SendEnv LANG LC_*
8111e9e127f5 Bypass locale env vars to remote host.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 89
diff changeset
    26