Josh Rivel wrote:
> 
> Walcir Fontanini-ADM- wrote...
> > When "ssh -l root some_host some_command" finishes it sits down waiting
> > for
> > something I don't know, and then when I type RETURN ssh returns
> > immediatelly and
> > prints "Disconnected; connection lost (Connection closed.)."
> 
> Can you do a "ssh -v -l root some_host some_command" and post the
> text?  Do you have root login disables on the some_host machine?
> (check in /etc/ssh2/sshd2_config)
> 
> Josh
Sure Josh, here it is:

antarctica_12=> ssh -v -l root miller ls -ldg /tmp
Development-time debugging not compiled in.
To enable, configure with --enable-debug and recompile.
debug: hostname is 'miller'.
debug: Unable to open /USERS/ADMIN/walcir/.ssh2/ssh2_config
Development-time debugging not compiled in.
To enable, configure with --enable-debug and recompile.
debug: connecting to miller...
debug: entering event loop
debug: ssh_client_wrap: creating transport protocol
debug: ssh_client_wrap: creating userauth protocol
debug: Remote version: SSH-1.99-2.0.13 (non-commercial)
debug: Host key found from the database.
root's password: 
debug: Ssh2/ssh2.c:304/client_authenticated: client_authenticated
debug: Requesting X11 forwarding with authentication spoofing.
drwxrwxrwt   8 sys      sys           904 May 19 13:41 /tmp

<==== At this point I pressed RETURN key =====>

debug: client_disconnect: Connection closed.

Disconnected; connection lost (Connection closed.).
debug: session_close
debug: destroying client struct...
debug: uninitializing event loop

Here is my sshd2_config:

antarctica_13=> cat /etc/ssh2/sshd2_config
# sshd2_config
# SSH 2.0 Server Configuration File

*:
        Port                            22
        ListenAddress                   0.0.0.0
        Ciphers                         AnyStd
        IdentityFile                    identification
        AuthorizationFile               authorization
        HostKeyFile                     hostkey
        PublicHostKeyFile               hostkey.pub
        RandomSeedFile                  random_seed
        ForwardAgent                    yes
        ForwardX11                      yes
        PasswordAuthentication          yes
        PasswordGuesses                 3
        PermitRootLogin                 yes
        PubkeyAuthentication            yes
        ForcePTTYAllocation             no
        VerboseMode                     no
        PrintMotd                       yes
        UserConfigDirectory             "%D/.ssh2"
        SyslogFacility                  LOCAL7
        Ssh1Compatibility               yes
        subsystem-sftp                  sftp-server

-walcir

Reply via email to