Using the watch command remotely
What I am trying to do is use watch to see who is logging into my server and who is attempting to log into my server. But do this all as part of a script.
(I omitted my server address and password for obvious reasons)
If i lose the watch command it works fine, the problem is, then I have to call the command every 2 seconds, including reloggin into the server via ssh.
omega@desktop:~$ ssh SERVER "echo 'PASSWORD' | sudo -S watch 'netstat -nap | grep EST'"
[sudo] password for omega: Error opening terminal: unknown.
Its the whole "Error opening terminal:unknown" that gets me.
Windows and Ubuntu can be used in harmony, both have advantages, both disadvantages.