TransWikia.com

How to connect to Windows Nano Server via SSH?

Server Fault Asked by Andre Figueiredo on November 10, 2021

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

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.

https://techcommunity.microsoft.com/t5/itops-talk-blog/installing-and-configuring-openssh-on-windows-server-2019/ba-p/309540

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

Answered by enorl76 on November 10, 2021

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).

Answered by Moerwald on November 10, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP