lyhiving/sshconf

PHP ssh config parser

v1.1 2022-04-20 09:50 UTC

This package is auto-updated.

Last update: 2024-12-20 15:41:50 UTC


README

Read more about SSH config files: https://linux.die.net/man/5/ssh_config

Install

Composer

composer require lyhiving/sshconf
{
    "require": {
            "lyhiving/sshconf": "1.*"
    }
}

Useage

<?php 
use lyhiving\sshconf\sshconf;
$sshconf = new sshconf(__DIR__ . "/#remotessh.txt");
var_dump($sshconf->gets());

CLI

Notes

Main part from@m4rku5. I had make it easy to use.