Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

ssh Server refused to allocate pty

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
newbenji
n00b
n00b
Posts: 69
Joined: Fri Sep 05, 2003 8:10 am
Location: Denmark, Odense

ssh Server refused to allocate pty

  • Quote

Post by newbenji » Sun Jun 05, 2011 12:31 pm

I just installed a new server and got through the most problems with the livecd.

http://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: Select all

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: Select all

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: Select all

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.
Top
newbenji
n00b
n00b
Posts: 69
Joined: Fri Sep 05, 2003 8:10 am
Location: Denmark, Odense

  • Quote

Post by newbenji » Tue Jun 07, 2011 7:22 am

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.
Top
lostinspace2011
Apprentice
Apprentice
Posts: 240
Joined: Fri Sep 09, 2005 10:41 pm

  • Quote

Post by lostinspace2011 » Sat Apr 06, 2013 12:14 pm

There is a better solution to edit /etc/fstab and include an entry rather than manually mounting this after every boot.
Top
Post Reply

3 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy