PowerShell / PowerShell/PowerShell-Docker

Add ssh client to arm32 image

オープン
#474 コメント 1 件 リアクション 0 件 担当者 1 名 GitHub で見る

@TravisEz13 がすでに取り組んでいます。

2020年7月29日 から。

Issue-Enhancement
主要言語
Dockerfile
スター
449
フォーク
158
平均マージ
3日 10時間
マージ済み PR(30日)
1

説明

Summary

For Ubuntu-based images, this just needs an apt-get install openssh-client.

Steps to reproduce

New-PSSession -HostName ... -UserName ... -KeyFilePath ...

Expected behavior

Should allow PS remoting over SSH

Actual behavior

Error:

Enter-PSSession: An error has occurred which PowerShell cannot handle. A remote session might have ended.

Digging into the InnerException reveals that it is because of missing ssh:

System.Management.Automation.CommandNotFoundException: The term 'ssh' is not recognized as the name of a cmdlet,
                              function, script file, or operable program.
                              Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
                                 at System.Management.Automation.CommandDiscovery.LookupCommandInfo(String commandName, CommandTypes commandTypes,
                              SearchResolutionOptions searchResolutionOptions, CommandOrigin commandOrigin, ExecutionContext context)
                                 at System.Management.Automation.CommandDiscovery.LookupCommandInfo(String commandName, CommandOrigin commandOrigin,
                              ExecutionContext context)
                                 at System.Management.Automation.CommandDiscovery.LookupCommandInfo(String commandName, CommandOrigin commandOrigin)
                                 at System.Management.Automation.Runspaces.SSHConnectionInfo.StartSSHProcess(StreamWriter& stdInWriterVar,
                              StreamReader& stdOutReaderVar, StreamReader& stdErrReaderVar)
                                 at System.Management.Automation.Remoting.Client.SSHClientSessionTransportManager.CreateAsync()
                                 at System.Management.Automation.Remoting.ClientRemoteSessionDSHandlerImpl.SendNegotiationAsync(RemoteSessionState
                              sessionState)
                                 at System.Management.Automation.Remoting.ClientRemoteSessionDSHandlerImpl.HandleStateChanged(Object sender,
                              RemoteSessionStateEventArgs arg)
                                 at System.Management.Automation.ExtensionMethods.SafeInvoke[T](EventHandler`1 eventHandler, Object sender, T
                              eventArgs)
                                 at System.Management.Automation.Remoting.ClientRemoteSessionDSHandlerStateMachine.RaiseStateMachineEvents()
                                 at System.Management.Automation.Remoting.ClientRemoteSessionDSHandlerStateMachine.ProcessEvents()

For Ubuntu-based images, this just needs an apt-get install openssh-client.

Environment data

Name                           Value
----                           -----
PSVersion                      7.0.0-rc.2
PSEdition                      Core
GitCommitId                    7.0.0-rc.2
OS                             Linux 4.19.76-linuxkit #1 SMP Thu Oct 17 19:31:58 UTC 2019
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。