[Lxc-users] OpenSSH prevents users from logging in an LXC instance.

David Kang dkang at isi.edu
Tue Jan 17 16:14:35 UTC 2012


 Hi,

 I'm running RHEL6.1 as host OS.
And I'm trying to run OpenSUSE 12.1 LXC image on the host machine running RHEL6.1.
Authentication work fine. But after authentication OpenSSH complains the followings and close the connection.
I tried OpenSUSE with "enbable-selinux=0" or "enable-selinux=1" in its kernel parameter.
But both cases did end up the same problem.
Any idea how to fix it?

Jan 17 11:04:02 linux-aewd sshd[24492]: Accepted keyboard-interactive/pam for root from 192.168.122.1 port 44547 ssh2
Jan 17 11:04:02 linux-aewd sshd[24492]: pam_selinux(sshd:session): Error sending audit message.
Jan 17 11:04:02 linux-aewd sshd[24492]: pam_selinux(sshd:session): Error!  Unable to set root executable context user_u:sysadm_r:sysadm_t.
Jan 17 11:04:02 linux-aewd sshd[24492]: pam_selinux(sshd:session): Error!  Unable to set root key creation context user_u:sysadm_r:sysadm_t.
Jan 17 11:04:02 linux-aewd sshd[24492]: error: ssh_selinux_setup_pty: security_compute_relabel: No such file or directory
Jan 17 11:04:02 linux-aewd sshd[24495]: error: Failed to disconnect from controlling tty.
Jan 17 11:04:02 linux-aewd sshd[24495]: fatal: ssh_selinux_setup_exec_context: security_getenforce() failed
Jan 17 11:04:02 linux-aewd sshd[24492]: Received disconnect from 192.168.122.1: 11: disconnected by user

 Thanks,

 David.

----------------------
Dr. Dong-In "David" Kang
Computer Scientist
USC/ISI





More information about the lxc-users mailing list