To check if the port is associated with the official list of known services, type:
cat /etc/services | more 2015-10-22 15:52 GMT-02:00 Andre Campos Rodovalho <[email protected] >: > sudo lsof -i:22 > Nice! Command, you can also use nmap... > > nmap -sT -O localhost > > > > 2015-10-22 15:44 GMT-02:00 Walter Lapchynski <[email protected]>: > >> On Thu, Oct 22, 2015 at 9:35 AM, Felipe M. Vieira <[email protected]> >> wrote: >> >>> I cannot use port 22 to start a lsh server on my machine. When I try I >>> get: >>> lshd: could not bind any address. >>> It looks like the port is already used. >>> But when I try: >>> 'pidof ssh' I get nothing. It looks like it's using the port but not >>> running. >>> >> >> ssh and sshd are not one in the same. You'll find your PID with `pidof >> sshd`. Better, yet, use `sudo lsof -i:22`. >> >> Still, though, I doubt that's the issue. It's not complaining about >> binding the port, but it's complaining about binding the address. Are you >> sure you gave it an address (127.0.0.1) to listen on? >> >> -- >> @wxl | http://polka.bike >> Lubuntu Release Manager & Head of QA >> Ubuntu PPC Point of Contact >> Ubuntu Oregon LoCo Team Leader >> Ubuntu Membership Board & LoCo Council Member >> Eugene Unix & GNU/Linux User Group Co-Organizer >> >> -- >> Lubuntu-users mailing list >> [email protected] >> Modify settings or unsubscribe at: >> https://lists.ubuntu.com/mailman/listinfo/lubuntu-users >> >> >
-- Lubuntu-users mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/lubuntu-users
