public class SshUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SshUtils.AuthenticationFailedException |
static class |
SshUtils.ConnectionFailedException |
static class |
SshUtils.SshLogger |
Modifier and Type | Method and Description |
---|---|
static void |
closeQuietly(com.jcraft.jsch.Channel channel) |
static void |
closeQuietly(com.jcraft.jsch.Session session) |
static com.jcraft.jsch.Session |
createSession(String host) |
static com.jcraft.jsch.Session |
createSession(String host,
int port) |
static com.jcraft.jsch.Session |
createSession(String host,
int port,
String user) |
static com.jcraft.jsch.Session |
createSession(String host,
int port,
String user,
String password) |
static com.jcraft.jsch.Session |
createSession(String host,
int port,
String user,
com.jcraft.jsch.UserInfo userInfo) |
static com.jcraft.jsch.Session |
createSession(String host,
String user) |
static void |
initSession(com.jcraft.jsch.Session session) |
static com.jcraft.jsch.ChannelSftp |
openSftpChannel(com.jcraft.jsch.Session session) |
public static void closeQuietly(com.jcraft.jsch.Channel channel)
public static void closeQuietly(com.jcraft.jsch.Session session)
public static com.jcraft.jsch.Session createSession(String host) throws IOException
IOException
public static com.jcraft.jsch.Session createSession(String host, int port) throws IOException
IOException
public static com.jcraft.jsch.Session createSession(String host, String user) throws IOException
IOException
public static com.jcraft.jsch.Session createSession(String host, int port, String user) throws IOException
IOException
public static com.jcraft.jsch.Session createSession(String host, int port, String user, String password) throws IOException
IOException
public static com.jcraft.jsch.Session createSession(String host, int port, String user, com.jcraft.jsch.UserInfo userInfo) throws IOException
IOException
public static void initSession(com.jcraft.jsch.Session session) throws IOException
IOException
public static com.jcraft.jsch.ChannelSftp openSftpChannel(com.jcraft.jsch.Session session) throws IOException, SshUtils.AuthenticationFailedException, SshUtils.ConnectionFailedException
Copyright © 2015 OpenEstate. All rights reserved.