-
Notifications
You must be signed in to change notification settings - Fork 0
/
ssh_conf
103 lines (88 loc) · 3.3 KB
/
ssh_conf
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# -----------------------------------------------------------------------------
# Matjaž's dotfiles SSH client configuration file
#
# Copyright (c) 2015-2016, Matjaž Guštin <[email protected]> matjaz.it
# This source code form is part of the "Matjaž's dotfiles" project and is
# subject to the terms of the BSD 3-clause license as expressed in the
# LICENSE.md file found in the top-level directory of this distribution and at
# http://directory.fsf.org/wiki/License:BSD_3Clause
# -----------------------------------------------------------------------------
# Default configuration that any host inherits. Override if needed.
Host *
# Use protocol v2 only, do not fallback to v1 if v2 is not available.
Protocol 2
### Security ###
# Protocol v2 ciphers
# The latest ones are really weak and are kept for compatibility with
# all hosts that may not have the stronger ones. No spaces after commas!
Ciphers aes256-ctr,[email protected],aes256-cbc,aes192-ctr,aes192-cbc,aes128-ctr,[email protected],aes128-cbc
# Try public key first
PreferredAuthentications publickey,gssapi-with-mic,hostbased,keyboard-interactive,password
### Connection ###
# After <value> seconds of inativity, sends an echo request to the server.
ServerAliveInterval 30
# After <value> echo consecutive requests sent, disconnects the session.
ServerAliveCountMax 20
# TCP timeout when estabilishing the first connection to the server.
ConnectTimeout 10
# Number of times to try the connection if timeouts.
ConnectionAttempts 3
Compression no
### Local logging ###
# A command run on the local machine after a succesful login to a server.
# %u = local user name
# %l = local host name
# %r = remote user name
# %n = host name as provided on the command line
# %h = remote host name
# %p = remote port
# %d = local user's home directory
PermitLocalCommand yes
LocalCommand echo "$(date +%%s) %u@%l --> %r@%h:%p" >> %d/.ssh/logins.log
Host nashira
HostName nashira.matjaz.it
User ubuntu
IdentityFile ~/.ssh/Nashira.pem
Port 62800
Host raspi
HostName noctis.zapto.org
User pi
IdentityFile ~/.ssh/Raspi
Port 62800
Host raspi-lan
HostName 192.168.0.86
User pi
IdentityFile ~/.ssh/Raspi
Port 62800
Host eltanin
HostName 192.168.0.88
User root
PreferredAuthentications password,publickey,gssapi-with-mic,hostbased,keyboard-interactive
Port 22
Host vbox-ubuntu
HostName localhost
User mat
PreferredAuthentications password,publickey,gssapi-with-mic,hostbased,keyboard-interactive
Port 3022
Host vbox-bsd
HostName localhost
User mat
PreferredAuthentications password,publickey,gssapi-with-mic,hostbased,keyboard-interactive
Port 3122
Host proxy
Hostname localhost
User mat
PreferredAuthentications password,publickey,gssapi-with-mic,hostbased,keyboard-interactive
Port 4022
Host gitlab-iaik gitlab_iaik gitlabiaik
Hostname git.teaching.iaik.tugraz.at
User git
IdentityFile ~/.ssh/gitlab_iaik
Host gitlab gitlab.com gitlab-com gitlab_com gitlabcom
Hostname gitlab.com
User git
IdentityFile ~/.ssh/gitlab.com
Host github github.com github-com github_com githubcom
Hostname github.com
User git
IdentityFile ~/.ssh/github.com