dev-master
9999999-devA ssh config parser for PHP
MIT
The Requires
- php >=7.1
The Development Requires
by ren
0.1.0
0.1.0.0A ssh config parser for PHP
MIT
The Requires
- php >=7.1
The Development Requires
by ren
Wallogit.com
2017 © Pedro Peláez
A ssh config parser for PHP
A ssh config parser in PHP, (*1)
use SshConfig\Config;
$config = Config::parse(file_get_contents('<filepath>'));
var_dump($config);
Result:
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)
MIT, (*5)
A ssh config parser for PHP
MIT
A ssh config parser for PHP
MIT