NTop icon indicating copy to clipboard operation
NTop copied to clipboard

run NTop on remote computer

Open tlsalex opened this issue 3 years ago • 8 comments

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 avatar Nov 26 '20 05:11 tlsalex

Any one can help ?

tlsalex avatar Nov 27 '20 07:11 tlsalex

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

stylefish avatar Jan 05 '21 16:01 stylefish

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

Darthagnon avatar Nov 01 '21 20:11 Darthagnon

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

gsass1 avatar Nov 02 '21 10:11 gsass1

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 avatar Nov 04 '21 12:11 Darthagnon

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)

https://user-images.githubusercontent.com/20792748/141342116-19af3db5-8c27-4082-bced-897feeef876d.mp4

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

Darthagnon avatar Nov 11 '21 17:11 Darthagnon

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?

gsass1 avatar Nov 12 '21 05:11 gsass1

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 ( https://github.com/gsass1/NTop/issues/37#issuecomment-966484888 ). 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 https://github.com/PowerShell/Win32-OpenSSH/issues/1556#issuecomment-592791576 for more info).

levitation avatar Aug 15 '23 03:08 levitation