What is Pseudo TTY-Allocation? (SSH and Github)

GithubSshOpenssh

Github Problem Overview


I was trying to setup an SSH connection with Github following this tutorial:

I came across the following command:

$ ssh -T git@github.com 
# Attempts to ssh to github

Curious, I looked at the ssh manual. It said the following:

 -T      Disable pseudo-tty allocation.

What is tty allocation? What does tty stand for? Why are we disabling it?
I earnestly tried to look it up but I was unable to find even a definition.

Github Solutions


Solution 1 - Github

As explained in "gitolite: PTY allocation request failed on channel 0", it is important to do ssh test connection with -T, because some server could abort the transaction entirely if a text-terminal (tty) is requested.

-T avoids requesting said terminal, since GitHub has no intention of giving you an interactive secure shell, where you could type command.

GitHub only wants to reply to your ssh request, in order to ascertain that the ssh command does work (you have the right public/private keys, and the public one has been registered to your GitHub account)

PuTTy would be an example of a terminal emulator, serial console and network file transfer application. It supports several network protocols, including SCP, SSH, Telnet and rlogin.
The name "PuTTY" has no definitive meaning, though "tty" is the name for a terminal in the Unix tradition, usually held to be short for Teletype.


Other use-cases for -T (beside testing)

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser2316667View Question on Stackoverflow
Solution 1 - GithubVonCView Answer on Stackoverflow