+ 1
SSH
I am looking to learn SSH commands. Which language should I learn?
9 ответов
+ 2
Hashim T Abubacker PHP is probably ok to start out with.
+ 3
What do you mean by SSH commands. SSH is simply a protocol used to interface with remote computers. I'm assuming you're using SSH to log into a computer. I'm not sure what OS the computer is so I can't say what language would help the best. If you're using Linux, Bash is a must.
+ 2
Guddu Kumar I think he's talking about SSHing into a computer and running system commands like on Linux. But I could be wrong because it's hard to understand what he's asking.
+ 1
Guddu Kumar Why would PHP be helpful? We don't have any information on what he's trying to do. PHP has nothing to do with SSH and is a web development language.
+ 1
Ben Allen, First of all sorry for the late reply I was little busy with my exams. I was into google cloud computing platform there I hosted a Wordpress website using bitnami launcher. It had commanding operation in SSH. I am a beginner in programming so I was not much aware about SSH and things like this. So which is the best option learning PHP or any other thing before I get my hands on PHP.?
0
php
0
Thanks
0
PHP can be using SSH command
I am using phpseclib but a Pure PHP SSH implementation.
For ex :-
<?php
include('Net/SSH2.php');
$ssh = new Net_SSH2('www.domain.tld');
if (!$ssh->login('username', 'password')) {
exit('Login Failed');
}
echo $ssh->exec('pwd');
echo $ssh->exec('ls -la');
?>
0
Ben Allen Thank you ✌🏻