I am often on one computer in my house and I would like to SSH to another one, but often don't know the IP address of the one I want to connect to. Is there a way, from the command line, to scan the local network so I can find the computer I want to connect to?
Ssh – How to scan local network for SSH-able computers
ipnetworkingssh
Related Topic
- How does IPv4 Subnetting Work
- Windows Networking – How to Determine Hostname from IP Address
- Ssh – How to automate SSH login with password
- SSH Keys – Add Correct Host Key in Known Hosts for Multiple SSH Host Keys
- Linux – SSH: Access local file (redirect local file contents) via remote SSH console
- Linux – Scan for connected, powered on computers on a network
Best Answer
Use "nmap" - this will tell you which hosts are up on a network, and indeed which have port 22 open. You could combine it with a few other tools (like grep) to produce more targeted output if need be.
Note: do this only on YOUR network. Running up nmap or its equivalents on someone else's network is considered bad form.