Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ssh Server refused to allocate pty
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
newbenji
n00b
n00b


Joined: 05 Sep 2003
Posts: 69
Location: Denmark, Odense

PostPosted: Sun Jun 05, 2011 12:31 pm    Post subject: ssh Server refused to allocate pty Reply with quote

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.
Back to top
View user's profile Send private message
newbenji
n00b
n00b


Joined: 05 Sep 2003
Posts: 69
Location: Denmark, Odense

PostPosted: Tue Jun 07, 2011 7:22 am    Post subject: Reply with quote

Really noone can help here
well the solution for now is a file in local.d
with
mount devpts /dev/pts -t devpts


that is a soluition for now but i dont think its optimal.
Back to top
View user's profile Send private message
lostinspace2011
Apprentice
Apprentice


Joined: 09 Sep 2005
Posts: 230

PostPosted: Sat Apr 06, 2013 12:14 pm    Post subject: Reply with quote

There is a better solution to edit /etc/fstab and include an entry rather than manually mounting this after every boot.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum