I now have problems to access this server from my
Putty clients - i get the following error;
'Fatal: unable to initialise SFTP: could not connect'
Can anyone help me with this problem ?
Tom Kristen Hansen
EDB Teamco AS
Norway
--
Richard Silverman
sl...@shore.net
One new thing in this installation of OpenSSH, is that it now uses a user
sshd. As i can see under the
OpenSSH FAQ, this user must not have any shell output - something i have
tested - which can
interrupt sftp and scp.
Do anyone have a clue ?
"Richard E. Silverman" <sl...@shore.net> wrote in message
news:m1lhecr...@syrinx.oankali.net...
TKH> I have done some debugging, everything apart from sftp scp works
TKH> fine, and the sshd_config file seems to be ok.
TKH> ... Do anyone have a clue ?
You have still given no details for anyone to have a clue *about*. Post
the output of sftp -v and sshd -d, for a start.
--
Richard Silverman
sl...@shore.net
and sshd -d
---
debug1: sshd version OpenSSH_3.5p1
Could not load host key: /usr/local/etc/ssh_host_key
debug1: read PEM private key done: type RSA
debug1: private host key: #1 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: private host key: #2 type 2 DSA
Disabling protocol version 1. Could not load host key
debug1: Bind to port 22 on ::.
debug1: Bind to port 22 on 0.0.0.0.
Bind to port 22 on 0.0.0.0 failed: Address already in use.
Cannot bind any address.
Tom Kristen Hansen
"Richard E. Silverman" <sl...@shore.net> wrote in message
news:m1l3coa...@syrinx.oankali.net...
--
Richard Silverman
sl...@shore.net
>
> We need the output of an instance of sshd -d which participates in the
> connection in question -- not just a random one you start up which
> immediately dies because you're already running an sshd on that port, and
> has nothing to do with the problem at hand.
I've noticed this exact same problem as the O.P. and sent an e-mail about
this to the openssh-unix-dev and putty mailinglists.
I have since found the cause of the problem, and a work-around (which I do
not like, but for the time being)
Disable privilege-seperation on OpenSSH, and psftp will work again.
psftp seems to be the only client bothered by this, since openssh's sftp
(on unix and cygwin) seem to be working great no matter if privsep is on
or off.
Mark Janssen
maniac at maniac dot nl
------------
Hi List(s)
A customer of mine reported that sftp didn't work for them. It seems to
work just fine for me on that system, and after checking into it I
noticed that the customer used psftp, while I use sftp from either
cygwin or the linux version from openssh.
The openssh version of sftp works in all cases, priv-sep on or off.
However, the putty psftp breaks as soon as I turn on priv-sep (which is
on by default on openssh3.5).
I've tried this on 3.5 and today's snapshot of openssh.
I've tried with versions of putty from 0.52 to today's snapshot
On the unix system (i've tested aix433 and linux) the sshd reports the
following (sshd -D -d -d -d)
Jan 20 14:41:59 dhu1_boot sshd[9580]: Server listening on 0.0.0.0 port
22.
Jan 20 14:42:11 dhu1_boot sshd[15502]: Accepted password for maniac from
10.x.y.z port 2972 ssh2
Jan 20 14:42:12 dhu1_boot sshd[16546]: fatal: buffer_append_space: alloc
10506240 not supported
On the putty side I get the following message after entering the
password or passphrase when connecting to a server with priv-sep turned
on:
Fatal: unable to initialise SFTP: could not connect
----------
Mark Janssen
The workaround is to either force using the ssh v1 protocol, or deny
use of compression with v2.
For those who know how to fix either zlib or openssh, I got as far
as compress.c in the buffer_uncompress() routine, which calls inflate()
part of the zlib library (which is why I didn't go any further).
I'm using openssh-3.5p1, openssl-0.9.7a, zlib-1.1.4 for sshd compiled
with gcc on a SGI IRIX system, and was connecting from RedHat7.3 Linux
default install ssh code. If that makes any difference?
I see John Doe below has the same problem on different platforms.
There have been reports of problems like this with zlib-1.1.3 which
were cured by upgrading to zlib-1.1.4 and re-building.
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
But I am using zlib-1.1.4 (see my previous post).
I've no problem since I have a workaround, I'm hoping this info helps
others to have a workaround until the experts can track this down.