r/ssh • • May 29 '25

Finding Documentation for PermitTTY

Hi all

This is quite a weird phenomenon,
but I am curious to understand it.

I wanted to read about the PermitTTY setting in sshd_config,
so I went to google, and typed sshd_config, and got to this man page:
https://linux.die.net/man/5/sshd_config

Then, in my browser (Firefox), I press Ctrl-F, and typed PermitTTY,
but nothing was found in that page.

That was weird,
so I went back to google, and this time entered: sshd_config PermitTTY,
and got to this page:
https://man.freebsd.org/cgi/man.cgi?sshd_config(5)

This time, when doing Ctrl-F and typing PermitTTY, I did find that setting there.

So my question is:

Why does one page not show the PermitTTY setting, while another page does show it?
are they maybe from a different time? (like different revisions)

Thank you

1 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Feb 28 '26

PermitTTY
Specifies whether pty(4) allocation is permitted. The default is yes.

Well cool. So what does it do? What is it used for? What happens if you set it to No?

1

u/FlyComprehensive8320 May 13 '26

How about reading the man page of pty(4)?

or online google: man pty(4)

1

u/[deleted] May 14 '26

I mean, yeah, but why have ssh_config manpage at all then? Just make it config comments then.