[TAG] ssh on debian
Benjamin A. Okopnik
ben at linuxgazette.net
Mon Sep 5 18:49:19 MSD 2005
On Mon, Sep 05, 2005 at 04:32:19PM +0200, SYNSPACE - Stephan Hostie wrote:
> I installed OpenSSH on my debian sarge machine to secure outside
> connection (via putty, no root login).
> But now, I cannot run some simple things that I should need.
> One is MySQL scripts or Java programs remotely from another machine. To
> test what's happening (local php runs nice), i tried according to the
> MySQL book if 'telnet localhost 3306' is running. This only tells me,
Seems to me that you've described the problem yourself. If you're trying
to find out whether there's anything listening on port 3306 on a
_remote_ machine, why would you telnet to that port on your _local_
host? Instead, try
telnet [remotehost] 3306
where [remotehost] is the name or the IP of the remote host. In other
words, if I'm sitting in front of a machine called 'Fenrir', and I want
to know if, for example, SSH is running on a machine called 'Loki'
(which has an IP of 192.168.0.102 on my network), I'd say
telnet Loki 22
telnet 192.168.0.102 22
> after a few seconds, that the connection was closed by the foreign host.
> A telnet on another port than 22 (i.e. 23) tells me The connection was
The latter (usually) means that there's nothing listening on that port.
It could also mean that the IP you're coming from is being refused by
the firewall on the remote host, but since these are your machines, I
doubt that you've taken the effort to block yourself out. :)
* Ben Okopnik * Editor-in-Chief, Linux Gazette * http://linuxgazette.net *
More information about the TAG