[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Enabling SFTP under Debian 4.0r0



On Sat, Jul 07, 2007 at 11:49:28 -0500, ArcticFox wrote:
> On Jul 7, 2007, at 6:50 AM, Florian Kulzer wrote:

[...]

>> I agree with Kent that it is better not to allow remote root logins.
>
> Unless you guys have a suggestion that'll let me run root commands as a 
> normal user I kinda have to. Trying to sudo get me the message 'Fox is not 
> in the sudoers file, this incident will be reported.'

You can either add fox to the sudoers file (using "visudo") or you can
use "su" to become root after you have logged in as fox.

>> It would be nice to have more debugging output from the client. Try to
>> run this on the Apple box:
>>
>> sftp -v username@host

[...]

> Here's what it spit out:
>
> Last login: Sat Jul  7 11:38:30 on console
> Welcome to Darwin!
> genkos-Computer:~ genko$ sftp -v fox@10.0.0.150
> Connecting to 10.0.0.150...
> OpenSSH_4.5p1, OpenSSL 0.9.7l 28 Sep 2006

[...]

> debug1: Next authentication method: password
> fox@10.0.0.150's password:
> debug1: Authentication succeeded (password).
> debug1: channel 0: new [client-session]
> debug1: Entering interactive session.
> debug1: Sending subsystem: sftp
> Request for subsystem 'sftp' failed on channel 0
> Connection closed

OK, it fails for a normal user as well. I agree with Bob Proulx that we
really need to see your /etc/ssh/sshd_config now. At the very least I
would like to have a look at the output of:

grep sftp /etc/ssh/sshd_config

N="$(awk '/sftp/{print $3}' /etc/ssh/sshd_config)"; file "$N"; ls -l "$N"

dpkg -l {l,opens}sh-server | awk '/^[^D|+]/{print $1,$2,$3}'

(All three commands should be run on the Debian server.)

-- 
Regards,            | http://users.icfo.es/Florian.Kulzer
          Florian   |



Reply to: