forked from hadenlabs/zsh-ssh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: implement template assh (hadenlabs#40)
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
includes: | ||
- ~/.ssh/custom.yml | ||
|
||
defaults: | ||
# Check for changed server IPs or possible DNS spoofings | ||
CheckHostIP: yes | ||
# Enable compression | ||
Compression: yes | ||
# Enables the sharing of multiple sessions over a single socket | ||
ControlMaster: no | ||
# ControlPath: ~/.ssh/sockets/%h-%p-%r | ||
ControlPersist: yes | ||
Port: 22 | ||
# Store hashed domains in known_hosts for extra security | ||
HashKnownHosts: yes | ||
# Disable password authentication (bruteforce attacks, etc.) | ||
# PasswordAuthentication: no | ||
# Only enable public key authentication | ||
# PubkeyAuthentication: yes | ||
# Regenerate keys after a while | ||
RekeyLimit: 100M 3600 | ||
# Ask to verify server fingerprint | ||
StrictHostKeyChecking: no | ||
# Send keep-alive signals to avoid connection timeout | ||
TCPKeepAlive: yes | ||
# https://security.stackexchange.com/questions/110639/how-exploitable-is-the-recent-useroaming-ssh-problem | ||
UseRoaming: no | ||
# Display randomart images of hostkeys | ||
VisualHostKey: yes |