Class SshClient

    • Constructor Detail

      • SshClient

        public SshClient()
    • Method Detail

      • close

        public void close()

        close

        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface Client<NullRequest,​SshResponse>
        Specified by:
        close in interface java.io.Closeable
      • connect

        public void connect​(java.net.InetAddress address,
                            int port,
                            int timeout)
                     throws java.lang.Exception

        connect

        Specified by:
        connect in interface Client<NullRequest,​SshResponse>
        Parameters:
        address - a InetAddress object.
        port - a int.
        timeout - a int.
        Throws:
        java.io.IOException - if any.
        java.lang.Exception - if any.
      • setBanner

        public void setBanner​(java.lang.String banner)

        setBanner

        Parameters:
        banner - a String object.
      • setMatch

        public void setMatch​(java.lang.String match)

        setMatch

        Parameters:
        match - a String object.
      • setClientBanner

        public void setClientBanner​(java.lang.String clientBanner)

        setClientBanner

        Parameters:
        clientBanner - a String object.