# $Id: ssh_config,v 1.18 2021/07/12 21:35:21 nanons Exp $
#
# ssh(1) configuration (ssh_config(5))

# Set default user if unspecified to avoid leaking real username
User root

# Store hashed addresses in the known_hosts file for better privacy
# Addresses from a hashed known_hosts file can be searched with
# ssh-keygen(1)'s -F option and removed with the -R option.
# Note: cwm(1)'s "ssh to" (M-period) menu doesn't work with this option.
HashKnownHosts yes

# Automatically add new keys to ssh-agent(1) after first use for an hour
# Useful for only having to enter ssh(1) key passphrases once
# ssh-agent(1) is started by xenodm(1) if a ~/.ssh/id_* key exists or if
# ~/.ssh/identity exists -- create the latter if storing keys elsewhere
# Console users can automatically start ssh-agent(1) by appending
# "export SSH_AUTH_SOCK=/tmp/$USER.agent" to their ~/.profile and
# "@reboot ssh-agent -a /tmp/$USER.agent >/dev/null" to their crontab(5)
AddKeysToAgent 1h

# Proxy .onion connections through Tor
# Remove the "Match host" line to proxy ALL connections through Tor
# To be used in conjunction with pf/tor-only.conf
# Unnecessary if using a transparent proxy (see pf/tor-transparent.conf)
#Match host *.onion
#	ProxyUseFdpass yes
#	ProxyCommand /usr/bin/nc -F -X 5 -x 127.0.0.1:9050 %h %p
