newbenji n00b
Joined: 05 Sep 2003 Posts: 69 Location: Denmark, Odense
|
Posted: Sun Jun 05, 2011 12:31 pm Post subject: ssh Server refused to allocate pty |
|
|
I just installed a new server and got through the most problems with the livecd.
https://forums.gentoo.org/viewtopic-t-880149.html
But still have 1 problem.
I cant ssh to my server.
Well i can ssh but cant login.
I get the Server refused to allocate pty..
I found a minor solution but its not optimal
here is mount before the solution
Code: |
rootfs on / type rootfs (rw)
/dev/sda3 on / type ext4 (rw,noatime,barrier=1,data=ordered)
none on /proc type proc (rw,relatime)
rc-svcdir on /lib64/rc/init.d type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1024k,mode=755)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=10240k,nr_inodes=506576,mode=755)
none on /dev/pts type devpts (rw,relatime,gid=5,mode=600)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
|
then i make mount /dev/pts as root
my fstab is here
Code: |
none /proc proc defaults
none /dev/pts devpts gid=5,mode=600 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
|
then mount look like this
Code: |
rootfs on / type rootfs (rw)
/dev/sda3 on / type ext4 (rw,noatime,barrier=1,data=ordered)
none on /proc type proc (rw,relatime)
rc-svcdir on /lib64/rc/init.d type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1024k,mode=755)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=10240k,nr_inodes=506576,mode=755)
none on /dev/pts type devpts (rw,relatime,gid=5,mode=600)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
none on /dev/pts type devpts (rw,gid=5,mode=600)
|
And then i can login through my ssh
But i dont think its good solution make the mount each time i start the machine. So any good advice will be welcome. |
|