public function getSSHConfig()
    {
        $sshConfig = $this->getEnvOption('ssh', ['port' => 22, 'flags' => '-q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no']);

        if ($this->getHostPort() !== null) {
            $sshConfig['port'] = $this->getHostPort();
        }

        if (!array_key_exists('port', $sshConfig)) {
            $sshConfig['port'] = '22';
        }

        if (!array_key_exists('flags', $sshConfig)) {
            $sshConfig['flags'] = '-q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no';
        }

        return $sshConfig;
    }
public function getSSHConfig()
    {
        $sshConfig = $this->getEnvOption('ssh', ['port' => 22, 'flags' => '-q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no']);

        if ($this->getHostPort() !== null) {
            $sshConfig['port'] = $this->getHostPort();
        }

        if (!array_key_exists('port', $sshConfig)) {
            $sshConfig['port'] = '22';
        }

        if (!array_key_exists('flags', $sshConfig)) {
            $sshConfig['flags'] = '-q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no';
        }

        return $sshConfig;
    }
public function getSSHConfig ( ) { $ sshConfig = $ this -> getEnvOption ( 'ssh' , [ 'port' => 22 , 'flags' => '-q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' ] ) ; if ( $ this -> getHostPort ( ) !== null ) { $ sshConfig [ 'port' ] = $ this -> getHostPort ( ) ; } if ( ! array_key_exists ( 'port' , $ sshConfig ) ) { $ sshConfig [ 'port' ] = '22' ; } if ( ! array_key_exists ( 'flags' , $ sshConfig ) ) { $ sshConfig [ 'flags' ] = '-q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' ; } return $ sshConfig ; }
Get the SSH configuration based on the environment

@return array
Get the SSH configuration based on the environment