// throw new OpsException("Unknown compute.type value: " + type);
}
private SshConnection getSshConnection(String host, String user, KeyPair sshKeyPair) throws OpsException {
OpsSystem opsSystem = OpsContext.get().getOpsSystem();
ISshContext sshContext = opsSystem.getSshContext();
SshConnection sshConnection = sshContext.getSshConnection(user);
try {
sshConnection.setHost(InetAddress.getByName(host));
} catch (UnknownHostException e) {
throw new OpsException("Error resolving address: " + host, e);
}