Re: How to use fuser?



Hello Bo,

Thank you Loic. I understand it, vi will not have the file, if I
only open it but with no writing.

But, for a network connection, I have some problem too.

#ssh server ping anthoerserver
#netstat //I found the ssh port
#fuser -n tcp -4 port

But the command again give me nothing!
Why?
This time I use the net connection!

Perhaps sshd uses IPv6 by default (well likely, IPv4 mapped IPv6). Try:
# fuser -n tcp -6 ssh

A simpler command consists to search for both IPv4/6 as follows:
# fuser ssh/tcp

Cheers,
Loic.

.



Relevant Pages

  • Re: Questions on some wierd /var/log entries
    ... would like some input on what these entries are on about (yes, ... So port knocking is out as is moving my SSH port to ... I don't know the specifics about adding firewall rules using Suse's ...
    (comp.os.linux.misc)
  • RE: ssh remote command fuser does not work
    ... ssh remote command fuser does not work ... Cannot get remote command fuser to work - ... Soalris 8 system running OpenSSH_3.8p1, SSH protocols 1.5/2.0, OpenSSL ...
    (SSH)
  • Re: ssh dictionary attacks
    ... The easiest way to secure your server's SSH port is to just firewall ... I just use telnet to do the knocking, before firing up the SSH client. ... the knocking ports on the server, waits a bit, then starts the SSH ...
    (comp.security.ssh)
  • Re: Network problem
    ... An error message? ... When the network connection "goes down", the ssh ... pings between the ssh client system and the sshd system also ...
    (comp.unix.bsd.freebsd.misc)
  • telnet to ssh (port 22)
    ... I'm trying to test a new network configuration, and exposing my ssh port ... He can telnet to my smtp port just fine, ... I think this is the right thing for ssh to do when contacted by telnet. ...
    (comp.os.linux.security)