Which is a pretty bad idea.Īlso, on my Arch system, the command you seem to be using to get the IP returns the UID of my user: $ ip route get 1ġ.0.0.0 via 192.168.1.1 dev enp0s31f6 src 192.168.1. Also, why would you run ssh with sudo? If you need to log into the remote as root, then you can do that ( ssh but it's very unlikely you would need to run ssh with sudo unless your ssh keys all belonged to root. Determining the current user - First checked from the -u flag on wsl.exe, then falling back to the /etc/wsl.conf setting, checking the Windows Registry setting for the user for the instance, and finally falling back to root if none of the above are found. All we need is to open the terminal then type ip addr in the prompt and press. Try just: sudo nmap -sn 192.168.1.0/24 Please substitute your network identifier and subnet mask. This is considerably more complicated than it needs to be. The most convenient way to find ip address in Linux is using ip addr command. 12 Answers Sorted by: 76 You can use the Nmap utility for this.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |