Package com.atlassian.bamboo.plugins.ssh
Class SshConfig
java.lang.Object
com.atlassian.bamboo.plugins.ssh.SshConfig
This class parses SSH config files in the same way that SSH client does.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapply
(ProxyConnectionData connectionData, @Nullable String defaultUserName) Returns newProxyConnectionData
object with null values overridden with config variables.static SshConfig
-
Field Details
-
SSH_DIRECTORY
-
ID_RSA
-
ID_DSA
-
ID_ECDSA
-
KNOWN_PRIVATE_KEY_LOCATIONS
-
-
Constructor Details
-
SshConfig
- Parameters:
sshConfigs
- SSH configs to parse, in order of importance- Throws:
IOException
-
-
Method Details
-
apply
public ProxyConnectionData apply(ProxyConnectionData connectionData, @Nullable @Nullable String defaultUserName) throws IOException, GeneralSecurityException Returns newProxyConnectionData
object with null values overridden with config variables. If user name is not supplied in the connection data, it will be overriden with defaultUserName- Returns:
- Throws:
IOException
GeneralSecurityException
-
getDefaultSshConfig
- Throws:
IOException
-
getParsedFiles
-