protected function createResource()
    {
        $resource = $this->connect($this->configuration->asArguments());

        if (!is_resource($resource)) {
            throw new RuntimeException('The SSH connection failed.');
        }

        $this->resource = $resource;

        if (null !== $this->authentication) {
            $this->authenticate();
        }
    }
protected function createResource()
    {
        $resource = $this->connect($this->configuration->asArguments());

        if (!is_resource($resource)) {
            throw new RuntimeException('The SSH connection failed.');
        }

        $this->resource = $resource;

        if (null !== $this->authentication) {
            $this->authenticate();
        }
    }
protected function createResource ( ) { $ resource = $ this -> connect ( $ this -> configuration -> asArguments ( ) ) ; if ( ! is_resource ( $ resource ) ) { throw new RuntimeException ( 'The SSH connection failed.' ) ; } $ this -> resource = $ resource ; if ( null !== $ this -> authentication ) { $ this -> authenticate ( ) ; } }
Creates the session resource

If there is a defined authentication, it will authenticate the session

@throws RuntimeException if the connection fail
Creates the session resource