Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jan 2009 21:16:47 +0100
From:      Greg Byshenk <freebsd@byshenk.net>
To:        freebsd-stable@freebsd.org
Cc:        d@delphij.net, Xian Chen <hoganxian@gmail.com>
Subject:   Re: SSH problem
Message-ID:  <20090126201647.GE790@core.byshenk.net>
In-Reply-To: <497E0D55.3060006@delphij.net>
References:  <a2dd20fc0901261045m57230e5cr8d22d905517c8629@mail.gmail.com> <497E0D55.3060006@delphij.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jan 26, 2009 at 11:21:57AM -0800, Xin LI wrote:
> Xian Chen wrote:

> > I can use scp to move files from a linux to my Freebsd machine.
> > 
> > But, when I try to use WinSCP under windows, it always failed. WinSCP
> > errors: "Network error: Connection refused". Both scp & sftp fail if using
> > WinSCP.
> > 
> > Any clues for this?

> My guess is that you have specified an incorrect port number.  Try tcpdump?

Another possibility, IIRC, is a bad ssh hostkey (I haven't used WinSCP in
quite some time, but I recall that its error messages are not particularly
informative).

You can also check to see if you can reach the server.  Try a plain telnet
to port 22.  You won't actually be able to establish a connection if you
aren't running ssh, but you should see something like:

   Connected to <hostname>.
   Escape character is '^]'.
   SSH-2.0-OpenSSH_5.1p1 FreeBSD-20080901

 
-- 
greg byshenk  -  gbyshenk@byshenk.net  -  Leiden, NL



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090126201647.GE790>