@Deprecated public class SSHUtils extends Object
Modifier and Type | Field and Description |
---|---|
static File |
DEFAULT_CONFIG_FILE
Deprecated.
|
static File |
DEFAULT_KNOWN_HOSTS
Deprecated.
|
static int |
DEFAULT_PORT
Deprecated.
|
static String |
NO
Deprecated.
|
static List<String> |
PRIVATE_KEY_DEFAULTS
Deprecated.
|
static String |
STRICT_HOST_KEY_CHECKING
Deprecated.
|
Constructor and Description |
---|
SSHUtils()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static void |
addConfigFile(List<String> args,
File configFile,
File defaultConfigFile)
Deprecated.
|
static void |
addIdentityFile(List<String> args,
File identityFile)
Deprecated.
|
static void |
addOptions(List<String> args,
Properties options)
Deprecated.
|
static void |
addPort(List<String> args,
String portOption,
int port,
int defaultPort)
Deprecated.
|
static Properties |
getDefaultOptions()
Deprecated.
|
static List<File> |
getDefaultPrivateKeys()
Deprecated.
Return a non-null list containing any private keys found by examining default private key locations in
~/.ssh and
parsing ~/.ssh/config . |
static List<File> |
getExistingAndReadable(List<String> filenames)
Deprecated.
|
static List<String> |
getFilenames(File config)
Deprecated.
|
static List<String> |
getFilenames(List<String> identityFileLines)
Deprecated.
|
static List<String> |
getIdentityFileLines(List<String> lines)
Deprecated.
|
static List<File> |
getPrivateKeys(File config)
Deprecated.
Return a non-null list containing any private keys found by examining default private key locations in
~/.ssh and
parsing config . |
static boolean |
isValidPort(int port)
Deprecated.
Return true if
port >= 1 and port <= 65535 , false otherwise. |
public static final String STRICT_HOST_KEY_CHECKING
public static final String NO
public static final List<String> PRIVATE_KEY_DEFAULTS
public static final File DEFAULT_CONFIG_FILE
public static final int DEFAULT_PORT
public static final File DEFAULT_KNOWN_HOSTS
public SSHUtils()
public static final boolean isValidPort(int port)
port >= 1
and port <= 65535
, false otherwise.public static final void addPort(List<String> args, String portOption, int port, int defaultPort)
public static final void addOptions(List<String> args, Properties options)
public static final void addConfigFile(List<String> args, File configFile, File defaultConfigFile)
public static final void addIdentityFile(List<String> args, File identityFile)
public static final List<File> getPrivateKeys(File config)
~/.ssh
and
parsing config
. Any files returned by this method are guaranteed to exist and be readable.public static final List<File> getDefaultPrivateKeys()
~/.ssh
and
parsing ~/.ssh/config
. Any files returned by this method are guaranteed to exist and be readable.public static final Properties getDefaultOptions()
public static final List<File> getExistingAndReadable(List<String> filenames)
public static final List<String> getFilenames(File config)
public static final List<String> getIdentityFileLines(List<String> lines)
public static final List<String> getFilenames(List<String> identityFileLines)
Copyright © 2010–2014 The Kuali Foundation. All rights reserved.