I want to run Nano Server in a Virtualbox virtual machine in a Linux host, but it seems that Nano Server only accepts access via WinRM using PowerShell.

I would prefer to find a way to access via ssh as it's possible with other Windows to incorporate tasks with this machine in my automation in Linux environment.

How can I access Nano Server via ssh?

Is there a clever workaround?


2 Answers 2


There is a powershell module called Posh-SSH. If you install the module you've a New-SSHSession cmdlet. See this link. Based on this you can SSH to your Nano Server installation. To add SSH server capability to Nano Server you've to install Win32-OpenSSH (the link points to the install instructions).

  • This doesn't answer the question. He is asking how to ssh into the machine, not out. Oct 29, 2017 at 23:13
  • I've updated the answer.
    – Moerwald
    Nov 1, 2017 at 9:35
  • I still don't understand, I created a nano on aws. I am running on a mac and want to ssh. Anyone got advice.
    – Haroon
    Jan 20, 2018 at 16:00

You'll want to setup and install OpenSSH on the nano server. Unfortunately, you'll have to initially do it via the Powershell remoting shell.


Basically, the article outlines:

  • how to install the OpenSSH package on the server,
  • decide on user passwords or public key based authentication
  • fire up the ssh daemon to listen always, and through restarts of the OS

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .