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

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

Comments

@7aduta
Copy link

commented Nov 18, 2018

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

@terrafrost

This comment has been minimized.

Copy link
Member

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:

https://laravel.com/docs/5.0/database#query-logging

SSH2::enablePacketLog();

SSH2::getPacketLog();

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
Projects
None yet
2 participants
You can’t perform that action at this time.