<br><br><div class="gmail_quote">On Mon, Oct 22, 2012 at 3:49 PM, Fajar A. Nugraha <span dir="ltr"><<a href="mailto:list@fajar.net" target="_blank">list@fajar.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Mon, Oct 22, 2012 at 5:11 PM, swair shah <<a href="mailto:swairshah@gmail.com">swairshah@gmail.com</a>> wrote:<br>
> I have a container running centos 6, on a host system also running centos 6.<br>
> I have allocated a different subnet for containers and I'm able to ping the<br>
> container.<br>
><br>
> Now when I try to ssh into the container from another console, it prompts me<br>
> for password. This is the log on the host system.<br>
><br>
> Oct 22 14:00:25 localhost sshd[264]: Accepted password for root from<br>
> 192.168.0.2 port 38355 ssh2<br>
> Oct 22 14:00:25 localhost sshd[264]: pam_unix(sshd:session): session opened<br>
> for user root by (uid=0)<br>
> Oct 22 14:00:25 localhost sshd[266]: error: ioctl(TIOCSCTTY): Operation not<br>
> permitted<br>
> Oct 22 14:00:25 localhost sshd[266]: error: open /dev/tty failed - could not<br>
> set controlling tty: No such device or address<br>
<br>
</div>That's odd. My centos container has no /dev/tty and it works just<br>
fine. My host has one though.<br>
<div class="im"><br>
><br>
> I should also mention that my host machine is a remote one and I have ssh'd<br>
> into that.<br>
<br>
</div>It shouldn't matter. </blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
><br>
> Do I need to make any specific changes to the tty conf in the container?<br>
<br>
</div>Do you have /dev/pts directory inside the container? What files are in there?<br></blockquote><div><br></div><div>/dev/pts has </div><div><br></div><div><div>crw--w---- 1 root tty 136, 0 Oct 22 15:54 0</div><div>
crw--w---- 1 swair tty 136, 7 Oct 22 15:52 7</div><div>c--------- 1 root root 5, 2 Oct 22 15:25 ptmx</div></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Do you have /dev/tty inside the host?<br></blockquote><div><br></div><div>Host has /dev/tty. </div><div><br></div><div><br></div><div>swair.</div></div>