Class SSHClientConnection

    • Field Detail

      • logger

        @Named("jclouds.ssh")
        protected Logger logger
    • Method Detail

      • getHostAndPort

        public com.google.common.net.HostAndPort getHostAndPort()
        Returns:
        host and port, where port if not present defaults to 22
      • getLoginCredentials

        public LoginCredentials getLoginCredentials()
        Returns:
        login used in this ssh
      • getConnectTimeout

        public int getConnectTimeout()
        Returns:
        how long to wait for the initial connection to be made
      • getSessionTimeout

        public int getSessionTimeout()
        Returns:
        how long to keep the ssh open, or 0 for indefinitely
      • getAgentConnector

        public com.google.common.base.Optional<com.jcraft.jsch.agentproxy.Connector> getAgentConnector()
        Returns:
        Ssh agent connector
      • getSSHClient

        public net.schmizz.sshj.SSHClient getSSHClient()
        Returns:
        the current ssh or null if not connected
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object