Support the ongoing development of Laravel.io →
Configuration Authentication Requests
Last updated 2 years ago.
0

You need to catch the Exception.

$ssh = new Net_SSH2($all['ip']);

try {
  $ssh->login($all['user'], $all['password'])
  return "Works";
} catch (Errorexception $e) {
   return "Problem";
}
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Backonja backonja Joined 4 Jan 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.