View Issue Details

IDProjectCategoryView StatusLast Update
0017412CentOS-7[All Projects] generalpublic2020-05-28 18:52
ReporterHayward 
PriorityhighSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary0017412: Remote SSH terminal failure (permissions issue)
DescriptionSee this issue tracker thread for more information: https://github.com/microsoft/vscode-remote-release/issues/1154

Users attempting to connect to a remote CentOS host are unable to start a remote terminal due to what appears to be a permissions issue.

"After more digging it looks like the administrator has devpts mounted without forcing a gid and glibc's grantpt() is attempting to 'fix' the permissions but can't successfully do so. Knowing that's potentially the problem I managed to find a number of broken applications (screen, tmux, etc) - all of which attempt to open a pty not just vs-code. It'd be interesting to see how many of the people in this thread are running into the same cause, a quick mount | grep devpts might provide some indication."
Steps To ReproduceConnect to a CentOS 7 host using Microsoft's VS Code Remote Development extension or any other method for starting a remote terminal.

Should get something like this error:

The terminal process command '/bin/sh -c 'wget --version > /dev/null failed to launch (exit code: {2})
TagsNo tags attached.
abrt_hash
URL

Activities

TrevorH

TrevorH

2020-05-28 18:51

manager   ~0037008

On CentOS 7, devpts is mounted as

devpts /dev/pts devpts rw,seclabel,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0

which does force a gid and the gid=5 which is "tty".
TrevorH

TrevorH

2020-05-28 18:52

manager   ~0037009

Also identical on RHEL so if this is a bug then it's inherited from RHEL and thus is not a bug as far as CentOS is concerned. We aim to be bug for bug compatible with RHEL.

Issue History

Date Modified Username Field Change
2020-05-28 18:45 Hayward New Issue
2020-05-28 18:51 TrevorH Note Added: 0037008
2020-05-28 18:52 TrevorH Note Added: 0037009