Skip to content

Commit

Permalink
Update README.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmds committed Sep 19, 2024
1 parent aaca369 commit 7511b7a
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ class SshConfigOptions
static IReadOnlyList<string> DefaultConfigFilePaths { get; } // [ '~/.ssh/config', '/etc/ssh/ssh_config' ]
IReadOnlyList<string> ConfigFilePaths { get; set; }
IReadOnlyDictionary<SshConfigOption, SshConfigOptionValue> Options { get; set; }

TimeSpan ConnectTimeout { get; set; } // = 15s, overridden by config timeout (if set)
Expand All @@ -245,6 +246,41 @@ class SshConfigOptions

HostAuthentication? HostAuthentication { get; set; } // Called for Unknown when StrictHostKeyChecking is 'ask' (default)
}
public enum SshConfigOption
{
Hostname,
User,
Port,
ConnectTimeout,
GlobalKnownHostsFile,
UserKnownHostsFile,
HashKnownHosts,
StrictHostKeyChecking,
PreferredAuthentications,
PubkeyAuthentication,
IdentityFile,
GSSAPIAuthentication,
GSSAPIDelegateCredentials,
GSSAPIServerIdentity,
RequiredRSASize,
SendEnv,
Ciphers,
HostKeyAlgorithms,
KexAlgorithms,
MACs,
PubkeyAcceptedAlgorithms
}
struct SshConfigOptionValue
{
SshConfigOptionValue(string value);
SshConfigOptionValue(IEnumerable<string> values);
static implicit operator SshConfigOptionValue(string value);

bool IsEmpty { get; }
bool IsSingleValue { get; }
string? FirstValue { get; }
IEnumerable<string> Values { get; }
}
class SftpClientOptions
{ }
class SftpException : IOException
Expand Down

0 comments on commit 7511b7a

Please sign in to comment.