2017 © Pedro Peláez
 

library ssh-config

A ssh config parser for PHP

image

r3n0e0/ssh-config

A ssh config parser for PHP

  • Friday, July 21, 2017
  • by r3n0e0
  • Repository
  • 0 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

SSH-CONFIG

A ssh config parser in PHP, (*1)

Build Status, (*2)

Example

use SshConfig\Config;
$config = Config::parse(file_get_contents('<filepath>'));
var_dump($config);

Result:
, (*3)


array(2) {
  [0] =>
  array(2) {
    'Host' =>
    string(5) "hello"
    'Config' =>
    array(4) {
      'HostName' =>
      string(11) "example.com"
      'User' =>
      string(3) "wow"
      'Port' =>
      string(2) "22"
      'IdentityFile' =>
      string(19) "~/.ssh/id_rsa_hello"
    }
  }
  [1] =>
  array(2) {
    'Host' =>
    string(1) "*"
    'Config' =>
    array(3) {
      'PasswordAuthentication' =>
      string(2) "no"
      'ChallengeResponseAuthentication' =>
      string(2) "no"
      'HashKnownHosts' =>
      string(3) "yes"
    }
  }
}

, (*4)

License

MIT, (*5)

The Versions

21/07 2017

dev-master

9999999-dev

A ssh config parser for PHP

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

by ren

20/07 2017

0.1.0

0.1.0.0

A ssh config parser for PHP

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

by ren