Re: Problem when building a chrooted sftp environment

From: Jay (jayw_at_wanadoo.fr)
Date: 08/22/03


Date: 22 Aug 2003 00:14:16 -0700


# Thanks Richard.
# I've performed the same operations in debug mode.

# End of the messages returned by 'sshd -d' :
Accepted password for fifi from 127.0.0.1 port 1026 ssh2
debug1: monitor_child_preauth: fifi has been authenticated by
privileged processAccepted password for fifi from 127.0.0.1 port 1026
ssh2
debug1: permanently_set_uid: 1001/100
debug1: Entering interactive session for SSH2.
debug1: fd 7 setting O_NONBLOCK
debug1: fd 8 setting O_NONBLOCK
debug1: server_init_dispatch_20
debug1: server_input_channel_open: ctype session rchan 0 win 65536 max
16384
debug1: input_session_request
debug1: channel 0: new [server-session]
debug1: session_new: init
debug1: session_new: session 0
debug1: session_open: channel 0
debug1: session_open: session 0: link with channel 0
debug1: server_input_channel_open: confirm session
debug1: server_input_channel_req: channel 0 request pty-req reply 0
debug1: session_by_channel: session 0 channel 0
debug1: session_input_channel_req: session 0 req pty-req
login_get_lastlog: Cannot find account for uid 1001
debug1: Calling cleanup 0x8061d88(0x0)
debug1: channel_free: channel 0: server-session, nchannels 1
debug1: Calling cleanup 0x8068a38(0x0)

# I open a new session with ALT+F2.
# End of the messages returned by 'ssh localhost -v -l fifi' :
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue:
publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /root/.ssh/identity
debug1: Trying private key: /root/.ssh/id_rsa
debug1: Trying private key: /root/.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue:
publickey,password,keyboard-interactive
debug1: Next authentication method: password
fifi@localhost's password:
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: channel 0: request pty-req
debug1: channel 0: request shell
debug1: channel 0: open confirm rwindow 0 rmax 32768
debug1: channel_free: channel 0: client-session, nchannels 1
Connection to localhost closed by remote host.
Connection to localhost closed.
debug1: Transferred: stdin 0, stdout 0, stderr 81 bytes in 0.0 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 10994.9
debug1: Exit status -1

# If I do the same with another user like the following, ssh works ...
test:x:1002:100::/home/test:/bin/bash
# Something's wrong with the jail ?



Relevant Pages

  • ssh - connection closed by remote host
    ... debug1: Authentication succeeded. ... debug1: channel 0: new ... think it is kerberos or ldap that's the problem (mostly because the ...
    (Fedora)
  • connection closed by remote host
    ... debug1: Authentication succeeded. ... debug1: channel 0: new ... think it is kerberos or ldap that's the problem (mostly because the ...
    (SSH)
  • ssh working, but not sftp..
    ... but whenever i try to open an sftp session using the latest ... for eveyone who needs to sftp to our server.. ... debug1: channel 1: new ...
    (comp.security.ssh)
  • Re: X11 connection rejected
    ... are you calling a suid program which calls ... > 'X11 connection rejected because of wrong authentication' error. ... > debug1: fd 8 setting TCP_NODELAY ... > debug1: channel 1: read failed ...
    (comp.security.ssh)
  • Re: SSH from windows to linux using public key authentication
    ... Linux Linux wrote: ... public key authentication. ... I have copied exact same public key to my Prolinux and it's not working. ... debug1: Next authentication method: publickey ...
    (RedHat)