HUB
Sign inSign up

jbonds/psr

By jbonds

•Updated over 9 years ago

PowerShell Core w/ PSRemoting Enabled over SSH. (Photon OS)

Image
0

10K+

jbonds/psr repository overview

note: This is the same image as jbonds/ssh-powershell-remoting

⁠Container running sshd with PowerShell Remoting Configured

(root password is 'SuperSecret')

This container will establish a PowerShell Remote session over SSH to both Linux and Windows machines running PowerShell Core. Windows must be setup up properly to allow this.

docker run --rm -it -name psremote1 -p 555:22 jbonds/psr

To connect to the container using a port other than default 22, you must define the port in your profile's ssh config file which will direct your ssh client to connect using the port specified.

For Linux:     ~/.ssh/config For Windows:     C:\users<username>.ssh\config

"config" file example:

Host 177.77.7.101     HostName 177.77.7.101     Port 555

Once you have this defined you can connect to the container as normal:

Linux:     $container = New-Pssession -Hostname 177.77.7.101 -UserName root Windows:     $container = New-Pssession -Hostname 177.77.7.101 -SSHTransport -UserName root

Enter-Pssession $container

The container can also connect to a non-container host. If the host is not configured to use a different port, there is no need to edit the config file. Connect as normal over port 22.

Tag summary
Recent tags
Content type
Image
Digest
Size
126.1 MB
Last updated
over 9 years ago
docker pull jbonds/psr:latest