.ssh/config
author Oleksandr Gavenko <gavenkoa@gmail.com>
Tue, 14 Nov 2023 15:15:28 +0200
changeset 1029 09f23ab46d03
parent 930 e867bffa536e
permissions -rw-r--r--
Permit extensibility of user's SSH config.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1029
09f23ab46d03 Permit extensibility of user's SSH config.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 930
diff changeset
     1
Include config.d/*
314
d1a4574fa534 This option was disabled to simplify use of port forwarding.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 223
diff changeset
     2
d1a4574fa534 This option was disabled to simplify use of port forwarding.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 223
diff changeset
     3
Host *
71
dcc8c2a63ec3 Revert: Host used for ControlMaster option. Also fix some misspelling.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 70
diff changeset
     4
dcc8c2a63ec3 Revert: Host used for ControlMaster option. Also fix some misspelling.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 70
diff changeset
     5
# 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
     6
# 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
     7
# 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
     8
# 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
     9
# 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
    10
# ControlMaster auto
66
486c0203dc2d Added comments.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 65
diff changeset
    11
930
e867bffa536e Ping SSH server every 2 min.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 868
diff changeset
    12
ServerAliveInterval 120
e867bffa536e Ping SSH server every 2 min.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 868
diff changeset
    13
66
486c0203dc2d Added comments.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 65
diff changeset
    14
# This by default.
486c0203dc2d Added comments.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 65
diff changeset
    15
# UserKnownHostsFile ~/.ssh/known_hosts
69
0e2366650523 About compression.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 67
diff changeset
    16
71
dcc8c2a63ec3 Revert: Host used for ControlMaster option. Also fix some misspelling.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 70
diff changeset
    17
# 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
    18
Compression yes
70
637657d3b402 Prefer public key authentication.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 69
diff changeset
    19
637657d3b402 Prefer public key authentication.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 69
diff changeset
    20
# Prefer public key authentication.
637657d3b402 Prefer public key authentication.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 69
diff changeset
    21
PreferredAuthentications publickey,keyboard-interactive,password
637657d3b402 Prefer public key authentication.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 69
diff changeset
    22
PubkeyAuthentication yes
222
8111e9e127f5 Bypass locale env vars to remote host.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 89
diff changeset
    23
8111e9e127f5 Bypass locale env vars to remote host.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 89
diff changeset
    24
# Bypass locale env vars to remote host.
223
1ce3922d21e6 Add doc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 222
diff changeset
    25
# 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
    26
SendEnv LANG LC_*
8111e9e127f5 Bypass locale env vars to remote host.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 89
diff changeset
    27