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

run NTop on remote computer #37

Open
tlsalex opened this issue Nov 26, 2020 · 8 comments
Open

run NTop on remote computer #37

tlsalex opened this issue Nov 26, 2020 · 8 comments

Comments

@tlsalex
Copy link

tlsalex commented Nov 26, 2020

I remember , I can run ntop on remote computer when I remote to a computer with powershell. I think it was in 2019,
But I find I can not do that now.
Is there anything change that cause fail to run it remotely ,any advise ?

@tlsalex
Copy link
Author

tlsalex commented Nov 27, 2020

Any one can help ?

luisriverag pushed a commit to luisriverag/NTop that referenced this issue Dec 4, 2020
@stylefish
Copy link

could this be ingetraged? i'm also very interested in running this via enter-pssession :)

@Darthagnon
Copy link

I'd also love to be able to remotely run NTop on remote computers. Could this be integrated?

@gsass1
Copy link
Owner

gsass1 commented Nov 2, 2021

Is there any reason why NTop cannot be run remotely whilst connected through Powershell (Enter-PSSession)?

@Darthagnon
Copy link

Darthagnon commented Nov 4, 2021

Is there any reason why NTop cannot be run remotely whilst connected through Powershell (Enter-PSSession)?

Maybe that's where I was going wrong. I connected to a remote PC via an SSH session in Command Prompt, not Powershell. I copied over ntop.exe, and tried running it via the remote SSH session, and it failed/did nothing, hence I was under the impression that ntop didn't work at all on remote PCs

@Darthagnon
Copy link

Darthagnon commented Nov 11, 2021

Here's what happens when I try and run NTOP via a remote SSH session (might be unclear due to low framerate, but cursor is moving all over the command window)

NTOP.mp4

EDIT: Oh, wow, Telegram compressed that horribly when I sent the gif to myself :(

@gsass1
Copy link
Owner

gsass1 commented Nov 12, 2021

The first thing that NTop does is replace the console screen buffer with its own (https://github.com/gsass1/NTop/blob/master/ntop.c#L1648). It seems like that doesn't work in SSH?

@levitation
Copy link

levitation commented Aug 15, 2023

It works over SSH when the remote computer is Windows 10 or Windows 11. When the remote computer is Windows 7, then I have same experience as in the video posted above, the cursor just starts jumping all over the screen ( #37 (comment) ). I am using Windows 7 OpenSSH 8.1.0.0p1-Beta.

If it did work with Windows 7 before, then it would be good to know when was the last time the working version was installed and/or which version of ntop AND sshd it was. I would be happy to be able to use ntop over SSH on Windows 7 too.

I tried various old versions of ntop (from the first to latest, skipping a couple intermediate ones) from https://github.com/gsass1/NTop/releases and none of them worked with my current OpenSSH version. The versions of ntop I tried:
ntop v0.0.1.exe
ntop v0.1.0.exe
ntop v0.2.0.exe
ntop v0.3.0.exe
ntop v0.3.3.exe
ntop v0.3.4.exe

Maybe older versions of OpenSSH behave better? I know I had a screen scrolling issue with OpenSSH outside of ntop use as well. It was supposedly introduced with OpenSSH v8.1, so earlier versions did not have it. But I fixed it with a private ssh-shellhost binary (see PowerShell/Win32-OpenSSH#1556 (comment) for more info).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants