SSH problem
Greg Byshenk
freebsd at byshenk.net
Mon Jan 26 12:17:17 PST 2009
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 at byshenk.net - Leiden, NL
More information about the freebsd-stable
mailing list