|
| 1 | +# ----------------------------------------------------------------------------- |
| 2 | +# Matjaž's dotfiles SSH client configuration file |
| 3 | +# |
| 4 | +# Copyright (c) 2015-2016, Matjaž Guštin <dev@matjaz.it> matjaz.it |
| 5 | +# This source code form is part of the "Matjaž's dotfiles" project and is |
| 6 | +# subject to the terms of the BSD 3-clause license as expressed in the |
| 7 | +# LICENSE.md file found in the top-level directory of this distribution and at |
| 8 | +# http://directory.fsf.org/wiki/License:BSD_3Clause |
| 9 | +# ----------------------------------------------------------------------------- |
| 10 | + |
| 11 | +# Default configuration that any host inherits. Override if needed. |
| 12 | +Host * |
| 13 | + # Use protocol v2, fallback to v1 if v2 is not available. |
| 14 | + Protocol 2,1 |
| 15 | + |
| 16 | + ### Security ### |
| 17 | + # Protocol v2 ciphers |
| 18 | + # The latest ones are really weak and are kept for compatibility with |
| 19 | + # all hosts that may not have the stronger ones. No spaces after commas! |
| 20 | + Ciphers aes256-ctr,aes256-gcm@openssh.com,aes256-cbc,aes192-ctr,aes192-cbc,aes128-ctr,aes128-gcm@openssh.com,aes128-cbc,blowfish-cbc,arcfour256,arcfour128,arcfour,3des-cbc |
| 21 | + # Protocol v1 cipher |
| 22 | + Cipher blowfish |
| 23 | + # Try public key first |
| 24 | + PreferredAuthentications publickey,gssapi-with-mic,hostbased,keyboard-interactive,password |
| 25 | + |
| 26 | + ### Connection ### |
| 27 | + # After <value> seconds of inativity, sends an echo request to the server. |
| 28 | + ServerAliveInterval 30 |
| 29 | + # After <value> echo consecutive requests sent, disconnects the session. |
| 30 | + ServerAliveCountMax 20 |
| 31 | + # TCP timeout when estabilishing the first connection to the server. |
| 32 | + ConnectTimeout 10 |
| 33 | + # Number of times to try the connection if timeouts. |
| 34 | + ConnectionAttempts 3 |
| 35 | + Compression no |
| 36 | + |
| 37 | + ### Local logging ### |
| 38 | + # A command run on the local machine after a succesful login to a server. |
| 39 | + # %u = local user name |
| 40 | + # %l = local host name |
| 41 | + # %r = remote user name |
| 42 | + # %n = host name as provided on the command line |
| 43 | + # %h = remote host name |
| 44 | + # %p = remote port |
| 45 | + # %d = local user's home directory |
| 46 | + PermitLocalCommand yes |
| 47 | + LocalCommand echo "$(date +%%s) %u@%l --> %r@%h:%p" >> %d/.ssh/logins.log |
| 48 | + |
| 49 | +Host nashira |
| 50 | + HostName nashira.matjaz.it |
| 51 | + User ubuntu |
| 52 | + IdentityFile ~/.ssh/Nashira.pem |
| 53 | + Port 62800 |
| 54 | + |
| 55 | +Host raspi |
| 56 | + HostName noctis.zapto.org |
| 57 | + User pi |
| 58 | + IdentityFile ~/.ssh/Raspi |
| 59 | + Port 62800 |
| 60 | + |
| 61 | +Host raspi-lan |
| 62 | + HostName 192.168.0.86 |
| 63 | + User pi |
| 64 | + IdentityFile ~/.ssh/Raspi |
| 65 | + Port 62800 |
| 66 | + |
| 67 | +Host eltanin |
| 68 | + HostName 192.168.0.88 |
| 69 | + User root |
| 70 | + PreferredAuthentications password,publickey,gssapi-with-mic,hostbased,keyboard-interactive |
| 71 | + Port 22 |
| 72 | + |
| 73 | +Host vbox-ubuntu |
| 74 | + HostName localhost |
| 75 | + User mat |
| 76 | + PreferredAuthentications password,publickey,gssapi-with-mic,hostbased,keyboard-interactive |
| 77 | + Port 3022 |
| 78 | + |
| 79 | +Host vbox-bsd |
| 80 | + HostName localhost |
| 81 | + User mat |
| 82 | + PreferredAuthentications password,publickey,gssapi-with-mic,hostbased,keyboard-interactive |
| 83 | + Port 3122 |
| 84 | + |
| 85 | +Host proxy |
| 86 | + Hostname localhost |
| 87 | + User mat |
| 88 | + PreferredAuthentications password,publickey,gssapi-with-mic,hostbased,keyboard-interactive |
| 89 | + Port 4022 |
0 commit comments