HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

scp/sftp connection resources

 
SOLVED
Go to solution
dmsmith32
Advisor

scp/sftp connection resources

Hi
PA-RisC HPUX 11.23

nstrpty etc are set to 2048 for max telnet/scp, does creating an scp or sftp connection use these resources, in turn allowing less telnet/scp connections.

bets regards

Darren.
3 REPLIES
Johnson Punniyalingam
Honored Contributor
Solution

Re: scp/sftp connection resources

>>nstrpty etc are set to 2048 for max telnet/scp, does creating an scp or sftp connection use these resources, in turn allowing less telnet/scp connections.<<

Yes,

otherwise you see these kind below errors

unable to allocate pty.
no more system resources
connection reset by peer
Problems are common to all, but attitude makes the difference
dmsmith32
Advisor

Re: scp/sftp connection resources

Thanks for the very fast response.
Johnson Punniyalingam
Honored Contributor

Re: scp/sftp connection resources

its kernal parameter "nstrpty"


nstrpty is the number of streams-based pseudo-teletype (pty) drivers that a system can support. The pty driver provides support for a device-pair called a pseudo terminal. A pseudo terminal is a pair of character devices, a master device, and a slave device. These allow communication between an application process and a server process. When sending data to pty devices (such as windows), a pty device must exist for every window that is open at any given time.

nstrpty should be set to a value that is equal to, or greater than, the number of pty devices on the system that will be using streams-based I/O pipes. Using a parameter value significantly larger than the number of ptys is not recommended. nstrpty is used when creating data structures in the kernel to support streams-based ptys, and an excessively large value wastes kernel memory space.

Problems are common to all, but attitude makes the difference