From: Gaiseric Vandal on
Does AIX use pam?

If so, check to see if there are any differences on entries relating to
sshd, telnet or other.




On 12/08/09 13:12, RobertoBouza(a)bayviewassetmanagement.com wrote:
> Hello everyone, I'm posting this one again I hope to get some kind of
> help. Doing further test telnet works fine authenticating users but not
> SSH.
>
> I was able to get an AIX box configured with winbind, and it looks like
> everything is working as expected but ssh to the machine and I hope you
> can help me with this.
>
> On the AIX server I'm able to issue wbinfo -u and -g with the right
> information and also I'm able to do a "su -<AD user>" without any
> problem. But when doing a remote SSH I just get this:
>
> Client:
>
> debug2: channel 0: send open
> debug1: Requesting no-more-sessions(a)openssh.com
> debug1: Entering interactive session.
> debug1: channel 0: free: client-session, nchannels 1
> debug3: channel 0: status: The following connections are open:
> #0 client-session (t3 r-1 i0/0 o0/0 fd 4/5 cfd -1)
>
> debug3: channel 0: close_fds r 4 w 5 e 6 c -1
> Connection to aixserver01 closed by remote host.
> Connection to aixserver01 closed.
> Transferred: sent 1648, received 1544 bytes, in 0.0 seconds
> Bytes per second: sent 105932.7, received 99247.6
> debug1: Exit status -1
>
> On the server aixserver01:
>
> Dec 3 11:23:15 aixserver01 authpriv:debug sshd[467118]: debug1:
> temporarily_use_uid: 150302/100513 (e=0/0)
> Dec 3 11:23:15 aixserver01 authpriv:debug sshd[467118]: debug1: trying
> public key file /home/users/robertobouza/.ssh/authorized_keys
> Dec 3 11:23:15 aixserver01 authpriv:debug sshd[467118]: debug1:
> restore_uid: 0/0
> Dec 3 11:23:15 aixserver01 authpriv:debug sshd[467118]: debug1:
> temporarily_use_uid: 150302/100513 (e=0/0)
> Dec 3 11:23:15 aixserver01 authpriv:debug sshd[467118]: debug1: trying
> public key file /home/users/robertobouza/.ssh/authorized_keys2
> Dec 3 11:23:15 aixserver01 authpriv:debug sshd[467118]: debug1:
> restore_uid: 0/0
> Dec 3 11:23:15 aixserver01 authpriv:info sshd[467118]: Failed publickey
> for robertobouza from 10.10.20.202 port 55612 ssh2
> Dec 3 11:23:17 aixserver01 authpriv:info sshd[467118]: Accepted password
> for robertobouza from 10.10.20.202 port 55612 ssh2
> Dec 3 11:23:17 aixserver01 authpriv:debug sshd[467118]: debug1:
> monitor_child_preauth: robertobouza has been authenticated by privileged
> process
> Dec 3 11:23:17 aixserver01 authpriv:debug sshd[467118]: debug1:
> do_cleanup
>
> So, it looks like everything is working but why do I get a connection
> closed?
>
> Thank you.
>
> Roberto Bouza.
>

--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
From: RobertoBouza on
Thanks for the answer Gaiseric,

To make SSH work we had to enable the UseLogin to Yes on the sshd_config
file.

Thank you.




Gaiseric Vandal <gaiseric.vandal(a)gmail.com>
Sent by: samba-bounces(a)lists.samba.org
12/08/2009 06:02 PM
Please respond to
gaiseric.vandal(a)gmail.com


To
samba(a)lists.samba.org
cc

Subject
Re: [Samba] Winbind + SSH + AIX - Connection to aixserver01 closed by
remote host






Does AIX use pam?

If so, check to see if there are any differences on entries relating to
sshd, telnet or other.




On 12/08/09 13:12, RobertoBouza(a)bayviewassetmanagement.com wrote:
> Hello everyone, I'm posting this one again I hope to get some kind of
> help. Doing further test telnet works fine authenticating users but not
> SSH.
>
> I was able to get an AIX box configured with winbind, and it looks like
> everything is working as expected but ssh to the machine and I hope you
> can help me with this.
>
> On the AIX server I'm able to issue wbinfo -u and -g with the right
> information and also I'm able to do a "su -<AD user>" without any
> problem. But when doing a remote SSH I just get this:
>
> Client:
>
> debug2: channel 0: send open
> debug1: Requesting no-more-sessions(a)openssh.com
> debug1: Entering interactive session.
> debug1: channel 0: free: client-session, nchannels 1
> debug3: channel 0: status: The following connections are open:
> #0 client-session (t3 r-1 i0/0 o0/0 fd 4/5 cfd -1)
>
> debug3: channel 0: close_fds r 4 w 5 e 6 c -1
> Connection to aixserver01 closed by remote host.
> Connection to aixserver01 closed.
> Transferred: sent 1648, received 1544 bytes, in 0.0 seconds
> Bytes per second: sent 105932.7, received 99247.6
> debug1: Exit status -1
>
> On the server aixserver01:
>
> Dec 3 11:23:15 aixserver01 authpriv:debug sshd[467118]: debug1:
> temporarily_use_uid: 150302/100513 (e=0/0)
> Dec 3 11:23:15 aixserver01 authpriv:debug sshd[467118]: debug1: trying
> public key file /home/users/robertobouza/.ssh/authorized_keys
> Dec 3 11:23:15 aixserver01 authpriv:debug sshd[467118]: debug1:
> restore_uid: 0/0
> Dec 3 11:23:15 aixserver01 authpriv:debug sshd[467118]: debug1:
> temporarily_use_uid: 150302/100513 (e=0/0)
> Dec 3 11:23:15 aixserver01 authpriv:debug sshd[467118]: debug1: trying
> public key file /home/users/robertobouza/.ssh/authorized_keys2
> Dec 3 11:23:15 aixserver01 authpriv:debug sshd[467118]: debug1:
> restore_uid: 0/0
> Dec 3 11:23:15 aixserver01 authpriv:info sshd[467118]: Failed publickey
> for robertobouza from 10.10.20.202 port 55612 ssh2
> Dec 3 11:23:17 aixserver01 authpriv:info sshd[467118]: Accepted
password
> for robertobouza from 10.10.20.202 port 55612 ssh2
> Dec 3 11:23:17 aixserver01 authpriv:debug sshd[467118]: debug1:
> monitor_child_preauth: robertobouza has been authenticated by privileged
> process
> Dec 3 11:23:17 aixserver01 authpriv:debug sshd[467118]: debug1:
> do_cleanup
>
> So, it looks like everything is working but why do I get a connection
> closed?
>
> Thank you.
>
> Roberto Bouza.
>

--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba

--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba