RE: sftp-server on solaris8

From: Kemi Olaofe (kemi.olaofe_at_maginus.com)
Date: 02/09/04

  • Next message: Rice.Dana_at_ic.gc.ca: "RE: AIX and w"
    To: 'Carl Holtje' <holtje@freeside.dnsalias.org>
    Date: Mon, 9 Feb 2004 10:59:44 -0000 
    
    

    Yes, root is allowed to connect. I also get the same problem if I try and
    connect as any other user.

    -----Original Message-----

    Kemi-

    The first thing I notice is that you're connecting as root -- is this
    allowed per your sshd.conf file?

    If not, that's at least your first problem...

    Hope it helps...

    Carl

    Kemi Olaofe wrote:
    > I am having a problem trying to use sftp over sshd on solaris8. sshd
    itself
    > works fine. I can run sftp directly by using the command
    >
    > sftp -P /usr/local/libexec/sftp-server root@localhost
    >
    > and my sshd config file has the following entry:
    >
    > Subsystem sftp /usr/local/libexec/sftp-server
    >
    > but when I try to use sftp over sshd using
    >
    > sftp root@localhost
    >
    > the system accepts the password and then times out! When I run the
    command
    > with debug level 2 I get the following:
    >
    > ...
    > root@localhost's password:
    > debug2: we sent a password packet, wait for reply
    > debug1: Authentication succeeded (password).
    > debug2: fd 5 setting O_NONBLOCK
    > debug2: fd 6 is O_NONBLOCK
    > debug1: channel 0: new [client-session]
    > debug2: channel 0: send open
    > debug1: Entering interactive session.
    > debug2: callback start
    > debug2: ssh_session2_setup: id 0
    > debug1: Sending subsystem: sftp
    > debug2: channel 0: request subsystem
    > debug2: callback done
    > debug2: channel 0: open confirm rwindow 0 rmax 32768
    > debug2: channel 0: rcvd adjust 131072
    > debug2: channel 0: rcvd eof
    > debug2: channel 0: output open -> drain
    > debug2: channel 0: obuf empty
    > debug2: channel 0: close_write
    > debug2: channel 0: output drain -> closed
    > debug1: client_input_channel_req: channel 0 rtype exit-signal reply 0
    > debug2: channel 0: rcvd close
    > debug2: channel 0: close_read
    > debug2: channel 0: input open -> closed
    > debug2: channel 0: almost dead
    > debug2: channel 0: gc: notify user
    > debug2: channel 0: gc: user detached
    > debug2: channel 0: send close
    > debug2: channel 0: is dead
    > debug2: channel 0: garbage collecting
    > debug1: channel 0: free: client-session, nchannels 1
    > debug1: fd 0 clearing O_NONBLOCK
    > debug2: fd 1 is not O_NONBLOCK
    > debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.0 seconds
    > debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
    > debug1: Exit status -1
    > Connection closed
    >
    > Any idea why it this could be occurring?
    > Kemi Olaofe
    >
    > ________________________________________________________________________
    > This e-mail has been scanned for all viruses by Star Internet. The
    > service is powered by MessageLabs. For more information on a proactive
    > anti-virus service working around the clock, around the globe, visit:
    > http://www.star.net.uk
    > ________________________________________________________________________

    -- 
    "There are 10 types of people in the world: Those who understand binary
    and those that don't."
    $>whoami: Carl Holtje
    $>mail holtje: holtje@freeside.dnsalias.org
    $>cu: http://freeside.dnsalias.org
    $>whois holtje:
       System Administrator Group
       Computer Science Department
       Rochester Institute of Technology
    $>
    ________________________________________________________________________
    This e-mail has been scanned for all viruses by Star Internet. The
    service is powered by MessageLabs. For more information on a proactive
    anti-virus service working around the clock, around the globe, visit:
    http://www.star.net.uk
    ________________________________________________________________________
    

  • Next message: Rice.Dana_at_ic.gc.ca: "RE: AIX and w"

    Relevant Pages

    • sftp only works for root
      ... I can only get sftp to work for root. ... If I sftp using a non-root user account, I get the following from sshd -d: ... debug1: Received SIGCHLD. ...
      (comp.security.ssh)
    • [kde-linux] Am I secured ? ( 2nd Hack attempt to my computer )
      ... unknown: 4 Time ... root: 3 Time ... SSHD Killed: 6 Time ... PermitRootLogin no ...
      (KDE)
    • Re: Best sftp chroot ?
      ... I have several clients who want to use sftp (SSH) ... lets do a quick check that our chroot (or other jail) is ... because I want you to see your new root working. ...
      (alt.os.linux.suse)
    • Re: SSH sftp and Windows
      ... "libsmb based programs must *NOT* be setuid root. ... >> the to use sftp to get into Linux and then mount some drives from windws ...
      (comp.os.linux.security)
    • Re: SSH and SFTP
      ... sftp usikng only one installed client rather that installing seperate ... There are a few 'solutions' but these will require that you have separate sshd ... instances and id's for both sftp and ssh for every user. ... userA-ssh member of sshAllow ...
      (SSH)