Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssh2 realtime log #1317

7aduta opened this issue Nov 18, 2018 · 1 comment


Copy link

commented Nov 18, 2018

is there any way to make ssh2 log be realtime with socket io or any other way


This comment has been minimized.

Copy link

commented Nov 19, 2018

You can do define('NET_SSH2_LOGGING', SSH2::LOG_REALTIME);. That said, I have been mulling over making logging work in the next major version of phpseclib more like it does in Laravel:



Of course, that wouldn't really accommodate real time logging. Maybe I could make enablePacketLog() accept a callback parameter to enable that.

For that matter, I think it'd be neat to be able to log SSH2 packets on a per-channel basis instead of just globally but how that'd work can be figured out later lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.