Class SshUtils
- java.lang.Object
-
- com.openindex.openestate.tool.utils.SshUtils
-
public class SshUtils extends Object
SshUtils.- Author:
- Andreas Rudolph
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSshUtils.AuthenticationFailedExceptionstatic classSshUtils.ConnectionFailedExceptionstatic classSshUtils.SshLogger
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcloseQuietly(com.jcraft.jsch.Channel channel)static voidcloseQuietly(com.jcraft.jsch.Session session)static com.jcraft.jsch.SessioncreateSession(String host)static com.jcraft.jsch.SessioncreateSession(String host, int port)static com.jcraft.jsch.SessioncreateSession(String host, int port, String user)static com.jcraft.jsch.SessioncreateSession(String host, int port, String user, com.jcraft.jsch.UserInfo userInfo)static com.jcraft.jsch.SessioncreateSession(String host, int port, String user, String password)static com.jcraft.jsch.SessioncreateSession(String host, String user)static voidinitSession(com.jcraft.jsch.Session session)static com.jcraft.jsch.ChannelSftpopenSftpChannel(com.jcraft.jsch.Session session)
-
-
-
Method Detail
-
closeQuietly
public static void closeQuietly(com.jcraft.jsch.Channel channel)
-
closeQuietly
public static void closeQuietly(com.jcraft.jsch.Session session)
-
createSession
public static com.jcraft.jsch.Session createSession(String host) throws IOException
- Throws:
IOException
-
createSession
public static com.jcraft.jsch.Session createSession(String host, int port) throws IOException
- Throws:
IOException
-
createSession
public static com.jcraft.jsch.Session createSession(String host, String user) throws IOException
- Throws:
IOException
-
createSession
public static com.jcraft.jsch.Session createSession(String host, int port, String user) throws IOException
- Throws:
IOException
-
createSession
public static com.jcraft.jsch.Session createSession(String host, int port, String user, String password) throws IOException
- Throws:
IOException
-
createSession
public static com.jcraft.jsch.Session createSession(String host, int port, String user, com.jcraft.jsch.UserInfo userInfo) throws IOException
- Throws:
IOException
-
initSession
public static void initSession(com.jcraft.jsch.Session session) throws IOException- Throws:
IOException
-
openSftpChannel
public static com.jcraft.jsch.ChannelSftp openSftpChannel(com.jcraft.jsch.Session session) throws IOException, SshUtils.AuthenticationFailedException, SshUtils.ConnectionFailedException
-
-