X Tutup
The Wayback Machine - https://web.archive.org/web/20220607124857/https://github.com/PowerShell/PowerShell/issues/17491
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-Process removing spaces from CommandLine property in Linux #17491

Open
5 tasks done
mgreenegit opened this issue Jun 7, 2022 · 2 comments
Open
5 tasks done

Get-Process removing spaces from CommandLine property in Linux #17491

mgreenegit opened this issue Jun 7, 2022 · 2 comments
Labels
Needs-Triage

Comments

@mgreenegit
Copy link
Member

@mgreenegit mgreenegit commented Jun 7, 2022

Prerequisites

Steps to reproduce

Get-Process sshd | ? {$_.Parent.Name -eq "systemd"} | % CommandLine    ```

Expected behavior

/usr/sbin/sshd -D

Actual behavior

/usr/sbin/sshd-D

Error details

No response

Environment data

Name                           Value
----                           -----
PSVersion                      7.2.4
PSEdition                      Core
GitCommitId                    7.2.4
OS                             Linux 4.19.0-20-amd64 #1 SMP Debian 4.19.235-1 (2022-03-…
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

image

@mgreenegit mgreenegit added the Needs-Triage label Jun 7, 2022
@kasini3000
Copy link

@kasini3000 kasini3000 commented Jun 7, 2022

ubuntu 20.04-lts:
ubuntu 22.04-lts:

(Get-Process sshd ).CommandLine                                                           
sshd: root@pts/0

almalinux 8.5:

PS /root> (Get-Process sshd ).CommandLine
/usr/sbin/sshd-D-oCiphers=aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes256-ctr,aes256-cbc,aes128-gcm@openssh.com,aes128-ctr,aes128-cbc-oMACs=hmac-sha2-256-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha2-256,hmac-sha1,umac-128@openssh.com,hmac-sha2-512-oGSSAPIKexAlgorithms=gss-curve25519-sha256-,gss-nistp256-sha256-,gss-group14-sha256-,gss-group16-sha512-,gss-gex-sha1-,gss-group14-sha1--oKexAlgorithms=curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1-oHostKeyAlgorithms=ecdsa-sha2-nistp256,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519,ssh-ed25519-cert-v01@openssh.com,rsa-sha2-256,rsa-sha2-256-cert-v01@openssh.com,rsa-sha2-512,rsa-sha2-512-cert-v01@openssh.com,ssh-rsa,ssh-rsa-cert-v01@openssh.com-oPubkeyAcceptedKeyTypes=ecdsa-sha2-nistp256,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519,ssh-ed25519-cert-v01@openssh.com,rsa-sha2-256,rsa-sha2-256-cert-v01@openssh.com,rsa-sha2-512,rsa-sha2-512-cert-v01@openssh.com,ssh-rsa,ssh-rsa-cert-v01@openssh.com-oCASignatureAlgorithms=ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,rsa-sha2-256,rsa-sha2-512,ssh-rsa
sshd: root@pts/0

@237dmitry
Copy link

@237dmitry 237dmitry commented Jun 7, 2022

PS > (Get-Process sshd*).CommandLine            
sshd: /usr/bin/sshd -D [listener] 0 of 10-100 startups

PS > ps aux | grep sshd                                                                                            
root         409  0.0  0.0   8792  5304 ?        Ss   Jun06   0:00 sshd: /usr/bin/sshd -D [listener] 0 of 10-100 startups

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Triage
Projects
None yet
Development

No branches or pull requests

3 participants
X Tutup