-
-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
9 changed files
with
217 additions
and
217 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
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
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
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
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 |
---|---|---|
|
@@ -195,96 +195,96 @@ func dummyConfig() *Config { | |
} | ||
config.Hosts["zzz"] = &Host{ | ||
// ssh-config fields | ||
AddressFamily: "any", | ||
AskPassGUI: "yes", | ||
BatchMode: "no", | ||
BindAddress: "", | ||
CanonicalDomains: "42.am", | ||
CanonicalizeFallbackLocal: "no", | ||
CanonicalizeHostname: "yes", | ||
CanonicalizeMaxDots: "1", | ||
CanonicalizePermittedCNAMEs: "*.a.example.com:*.b.example.com:*.c.example.com", | ||
ChallengeResponseAuthentication: "yes", | ||
CheckHostIP: "yes", | ||
Cipher: "blowfish", | ||
Ciphers: []string{"aes128-ctr,aes192-ctr", "aes256-ctr"}, | ||
ClearAllForwardings: "yes", | ||
Compression: "yes", | ||
CompressionLevel: 6, | ||
ConnectionAttempts: "1", | ||
ConnectTimeout: 10, | ||
ControlMaster: "yes", | ||
ControlPath: "/tmp/%L-%l-%n-%p-%u-%r-%C-%h", | ||
ControlPersist: "yes", | ||
DynamicForward: []string{"0.0.0.0:4242", "0.0.0.0:4343"}, | ||
EnableSSHKeysign: "yes", | ||
EscapeChar: "~", | ||
ExitOnForwardFailure: "yes", | ||
FingerprintHash: "sha256", | ||
ForwardAgent: "yes", | ||
ForwardX11: "yes", | ||
ForwardX11Timeout: 42, | ||
ForwardX11Trusted: "yes", | ||
GatewayPorts: "yes", | ||
GlobalKnownHostsFile: []string{"/etc/ssh/ssh_known_hosts", "/tmp/ssh_known_hosts"}, | ||
GSSAPIAuthentication: "no", | ||
GSSAPIKeyExchange: "no", | ||
GSSAPIClientIdentity: "moul", | ||
GSSAPIServerIdentity: "gssapi.example.com", | ||
GSSAPIDelegateCredentials: "no", | ||
GSSAPIRenewalForcesRekey: "no", | ||
GSSAPITrustDNS: "no", | ||
HashKnownHosts: "no", | ||
HostbasedAuthentication: "no", | ||
HostbasedKeyTypes: "*", | ||
HostKeyAlgorithms: "[email protected]", | ||
HostKeyAlias: "z", | ||
IdentitiesOnly: "yes", | ||
IdentityFile: []string{"~/.ssh/identity", "~/.ssh/identity2"}, | ||
IgnoreUnknown: "testtest", // FIXME: looks very interesting to generate .ssh/config without comments ! | ||
IPQoS: []string{"lowdelay", "highdelay"}, | ||
KbdInteractiveAuthentication: "yes", | ||
KbdInteractiveDevices: []string{"bsdauth", "test"}, | ||
KeychainIntegration: "yes", | ||
KexAlgorithms: []string{"[email protected]", "test"}, // for all algorithms/ciphers, we could have an "assh diagnose" that warns about unsafe connections | ||
LocalCommand: "echo %h > /tmp/logs", | ||
LocalForward: []string{"0.0.0.0:1234", "0.0.0.0:1235"}, | ||
LogLevel: "DEBUG3", | ||
MACs: []string{"[email protected],[email protected]", "test"}, | ||
Match: "all", | ||
AddressFamily: "any", | ||
AskPassGUI: "yes", | ||
BatchMode: "no", | ||
BindAddress: "", | ||
CanonicalDomains: "42.am", | ||
CanonicalizeFallbackLocal: "no", | ||
CanonicalizeHostname: "yes", | ||
CanonicalizeMaxDots: "1", | ||
CanonicalizePermittedCNAMEs: "*.a.example.com:*.b.example.com:*.c.example.com", | ||
ChallengeResponseAuthentication: "yes", | ||
CheckHostIP: "yes", | ||
Cipher: "blowfish", | ||
Ciphers: []string{"aes128-ctr,aes192-ctr", "aes256-ctr"}, | ||
ClearAllForwardings: "yes", | ||
Compression: "yes", | ||
CompressionLevel: 6, | ||
ConnectionAttempts: "1", | ||
ConnectTimeout: 10, | ||
ControlMaster: "yes", | ||
ControlPath: "/tmp/%L-%l-%n-%p-%u-%r-%C-%h", | ||
ControlPersist: "yes", | ||
DynamicForward: []string{"0.0.0.0:4242", "0.0.0.0:4343"}, | ||
EnableSSHKeysign: "yes", | ||
EscapeChar: "~", | ||
ExitOnForwardFailure: "yes", | ||
FingerprintHash: "sha256", | ||
ForwardAgent: "yes", | ||
ForwardX11: "yes", | ||
ForwardX11Timeout: 42, | ||
ForwardX11Trusted: "yes", | ||
GatewayPorts: "yes", | ||
GlobalKnownHostsFile: []string{"/etc/ssh/ssh_known_hosts", "/tmp/ssh_known_hosts"}, | ||
GSSAPIAuthentication: "no", | ||
GSSAPIKeyExchange: "no", | ||
GSSAPIClientIdentity: "moul", | ||
GSSAPIServerIdentity: "gssapi.example.com", | ||
GSSAPIDelegateCredentials: "no", | ||
GSSAPIRenewalForcesRekey: "no", | ||
GSSAPITrustDNS: "no", | ||
HashKnownHosts: "no", | ||
HostbasedAuthentication: "no", | ||
HostbasedKeyTypes: "*", | ||
HostKeyAlgorithms: "[email protected]", | ||
HostKeyAlias: "z", | ||
IdentitiesOnly: "yes", | ||
IdentityFile: []string{"~/.ssh/identity", "~/.ssh/identity2"}, | ||
IgnoreUnknown: "testtest", // FIXME: looks very interesting to generate .ssh/config without comments ! | ||
IPQoS: []string{"lowdelay", "highdelay"}, | ||
KbdInteractiveAuthentication: "yes", | ||
KbdInteractiveDevices: []string{"bsdauth", "test"}, | ||
KeychainIntegration: "yes", | ||
KexAlgorithms: []string{"[email protected]", "test"}, // for all algorithms/ciphers, we could have an "assh diagnose" that warns about unsafe connections | ||
LocalCommand: "echo %h > /tmp/logs", | ||
LocalForward: []string{"0.0.0.0:1234", "0.0.0.0:1235"}, | ||
LogLevel: "DEBUG3", | ||
MACs: []string{"[email protected],[email protected]", "test"}, | ||
Match: "all", | ||
NoHostAuthenticationForLocalhost: "yes", | ||
NumberOfPasswordPrompts: "3", | ||
PasswordAuthentication: "yes", | ||
PermitLocalCommand: "yes", | ||
PKCS11Provider: "/a/b/c/pkcs11.so", | ||
Port: "22", | ||
PreferredAuthentications: "gssapi-with-mic,hostbased,publickey", | ||
Protocol: []string{"2", "3"}, | ||
ProxyUseFdpass: "no", | ||
PubkeyAuthentication: "yes", | ||
RekeyLimit: "default none", | ||
RemoteForward: []string{"0.0.0.0:1234", "0.0.0.0:1255"}, | ||
RequestTTY: "yes", | ||
RevokedHostKeys: "/a/revoked-keys", | ||
RhostsRSAAuthentication: "no", | ||
RSAAuthentication: "yes", | ||
SendEnv: []string{"CUSTOM_*,TEST", "TEST2"}, | ||
ServerAliveCountMax: 3, | ||
ServerAliveInterval: 0, | ||
StreamLocalBindMask: "0177", | ||
StreamLocalBindUnlink: "no", | ||
StrictHostKeyChecking: "ask", | ||
TCPKeepAlive: "yes", | ||
Tunnel: "yes", | ||
TunnelDevice: "any:any", | ||
UpdateHostKeys: "ask", | ||
UseKeychain: "no", | ||
UsePrivilegedPort: "no", | ||
User: "moul", | ||
UserKnownHostsFile: []string{"~/.ssh/known_hosts ~/.ssh/known_hosts2", "/tmp/known_hosts"}, | ||
VerifyHostKeyDNS: "no", | ||
VisualHostKey: "yes", | ||
XAuthLocation: "xauth", | ||
PreferredAuthentications: "gssapi-with-mic,hostbased,publickey", | ||
Protocol: []string{"2", "3"}, | ||
ProxyUseFdpass: "no", | ||
PubkeyAuthentication: "yes", | ||
RekeyLimit: "default none", | ||
RemoteForward: []string{"0.0.0.0:1234", "0.0.0.0:1255"}, | ||
RequestTTY: "yes", | ||
RevokedHostKeys: "/a/revoked-keys", | ||
RhostsRSAAuthentication: "no", | ||
RSAAuthentication: "yes", | ||
SendEnv: []string{"CUSTOM_*,TEST", "TEST2"}, | ||
ServerAliveCountMax: 3, | ||
ServerAliveInterval: 0, | ||
StreamLocalBindMask: "0177", | ||
StreamLocalBindUnlink: "no", | ||
StrictHostKeyChecking: "ask", | ||
TCPKeepAlive: "yes", | ||
Tunnel: "yes", | ||
TunnelDevice: "any:any", | ||
UpdateHostKeys: "ask", | ||
UseKeychain: "no", | ||
UsePrivilegedPort: "no", | ||
User: "moul", | ||
UserKnownHostsFile: []string{"~/.ssh/known_hosts ~/.ssh/known_hosts2", "/tmp/known_hosts"}, | ||
VerifyHostKeyDNS: "no", | ||
VisualHostKey: "yes", | ||
XAuthLocation: "xauth", | ||
|
||
// ssh-config fields with a different behavior | ||
ProxyCommand: "nc %h %p", | ||
|
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
Oops, something went wrong.