1826325 Members
3474 Online
109692 Solutions
New Discussion

SSH error

 
Jeff Bruce
Occasional Contributor

SSH error

I keep getting this message in syslog.log

sshd error: no more sessions

any ideas on why
That which does not kill me, makes me stronger
3 REPLIES 3
Tor-Arne Nostdal
Trusted Contributor

Re: SSH error

Hi Just some questions and hints that might put you on right track.

If you read the man-pages for sshd you will see that:
"If the client successfully autheticate itself, a dialogue for preparing the session is entered. At this time the client may request things like allocating a pseudo-tty, forwarding X11 connections, forwarding TCP/IP connections, or forwarding the authentication agent connection over the secure channel"

Could it be that your out of tty's ?

Do you simply try to ssh to the host for a login, or do you try to run a remote command, or do you use sftp or scp ?
If you try a login, do you use ssh -X (to support X-windows)?

You might also want to check out the sshd_config file.

/2r
I'm trying to become President of the state I'm in...
Steven E. Protter
Exalted Contributor

Re: SSH error

Shalom,

You may be out of pseudo terminals.

Do you perhaps have more than 60 simultaneous users?
From kctune
nstrpty 60 60
nstrtel 60 Default

You may need to raise these in your kernel parameters.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Tor-Arne Nostdal
Trusted Contributor

Re: SSH error

Just a small comment to SEP :-)

kctune = "Itanium" (HP-UX 11.23)
kmtune = "PA-Risc" (HP-UX 11.11)

# kmtune | grep pty

----
Another issue is that ssh could be denying terminal login and only allow commands without tty.

This could be done if you have a key which is created for a specific command...
See man sshd command="command"

/Tor-Arne
I'm trying to become President of the state I'm in...