I am trying to poke/ping a remote Linux machine without using ssh
. Is there any other utilities to do this?
Addition: It would be quite a lot of helpful if poke can be done without providing the remote machine's password. Is it possible?
Update: I came to know about write
and wall
tools. Anybody know how to use them?
knockd
may be your answer.Server part:
knockd
-->sudo apt-get install knockd
sudo nano /etc/knockd.conf
also you can usegedit
orvi
.The configuration file should look like this after the edit:
Where
Interface
is the listening network interface,sequence
is the port knocking sequence andcommand
is the command to be executed when knocked.Edit startup file -->
sudo nano /etc/default/knockd
In this file you only need to change
START_KNOCKD=0
toSTART_KNOCKD=1
Reload
knockd
to apply changes withsudo /etc/init.d/knockd reload
Client part:
Simply telnet in that order the server ports and the command will be executed
You can also use the
knock
utility:Final notes
Logfile
specified, (i.e./var/log/knockd.log
)5555,5050,3333,3030
)You can try
nc
(netcat) to send/receive any messages (files too) over the network.For example the computer A has IP address 192.168.1.10 and computer B has IP address 192.168.1.20.
At first open a port on computer A to which the computer B will connect to:
Now Computer A will listen for incoming connections on port 2000, you should use any port other than "0-1023" i.e. well known ports.
Now we will make a connection from computer B to the port 2000 of computer A:
Now the computers will be connected and you can write any message from computer A which will be displayed on computer B and vice versa.