xref: /aosp_15_r20/external/angle/build/fuchsia/test/sshconfig (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1*8975f5c5SAndroid Build Coastguard Worker# Configure port 8022 for connecting to a device with the local address.
2*8975f5c5SAndroid Build Coastguard Worker# This makes it possible to forward 8022 to a device connected remotely.
3*8975f5c5SAndroid Build Coastguard Worker# The fuchsia private key is used for the identity.
4*8975f5c5SAndroid Build Coastguard WorkerHost 127.0.0.1
5*8975f5c5SAndroid Build Coastguard Worker  Port 8022
6*8975f5c5SAndroid Build Coastguard WorkerHost ::1
7*8975f5c5SAndroid Build Coastguard Worker  Port 8022
8*8975f5c5SAndroid Build Coastguard WorkerHost *
9*8975f5c5SAndroid Build Coastguard Worker# Turn off refusing to connect to hosts whose key has changed
10*8975f5c5SAndroid Build Coastguard WorkerStrictHostKeyChecking no
11*8975f5c5SAndroid Build Coastguard WorkerCheckHostIP no
12*8975f5c5SAndroid Build Coastguard Worker# Disable recording the known hosts
13*8975f5c5SAndroid Build Coastguard WorkerUserKnownHostsFile=/dev/null
14*8975f5c5SAndroid Build Coastguard Worker# Do not forward auth agent connection to remote, no X11
15*8975f5c5SAndroid Build Coastguard WorkerForwardAgent no
16*8975f5c5SAndroid Build Coastguard WorkerForwardX11 no
17*8975f5c5SAndroid Build Coastguard Worker# Connection timeout in seconds
18*8975f5c5SAndroid Build Coastguard WorkerConnectTimeout=10
19*8975f5c5SAndroid Build Coastguard Worker# Check for server alive in seconds, max count before disconnecting
20*8975f5c5SAndroid Build Coastguard WorkerServerAliveInterval 1
21*8975f5c5SAndroid Build Coastguard WorkerServerAliveCountMax 10
22*8975f5c5SAndroid Build Coastguard Worker# Try to keep the master connection open to speed reconnecting.
23*8975f5c5SAndroid Build Coastguard WorkerControlMaster auto
24*8975f5c5SAndroid Build Coastguard WorkerControlPersist yes
25*8975f5c5SAndroid Build Coastguard Worker# When expanded, the ControlPath below cannot have more than 90 characters
26*8975f5c5SAndroid Build Coastguard Worker# (total of 108 minus 18 used by a random suffix added by ssh).
27*8975f5c5SAndroid Build Coastguard Worker# '%C' expands to 40 chars and there are 9 fixed chars, so '~' can expand to
28*8975f5c5SAndroid Build Coastguard Worker# up to 41 chars, which is a reasonable limit for a user's home in most
29*8975f5c5SAndroid Build Coastguard Worker# situations. If '~' expands to more than 41 chars, the ssh connection
30*8975f5c5SAndroid Build Coastguard Worker# will fail with an error like:
31*8975f5c5SAndroid Build Coastguard Worker#     unix_listener: path "..." too long for Unix domain socket
32*8975f5c5SAndroid Build Coastguard Worker# A possible solution is to use /tmp instead of ~, but it has
33*8975f5c5SAndroid Build Coastguard Worker# its own security concerns.
34*8975f5c5SAndroid Build Coastguard WorkerControlPath=~/.ssh/fx-%C
35*8975f5c5SAndroid Build Coastguard Worker# Connect with user, use the identity specified.
36*8975f5c5SAndroid Build Coastguard WorkerUser fuchsia
37*8975f5c5SAndroid Build Coastguard WorkerIdentitiesOnly yes
38*8975f5c5SAndroid Build Coastguard WorkerIdentityFile ~/.ssh/fuchsia_ed25519
39*8975f5c5SAndroid Build Coastguard WorkerGSSAPIDelegateCredentials no
40