Installation of OpenSSH For Windows Server 2019 and Windows 10

https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse

 

 

Installation of OpenSSH For Windows Server 2019 and Windows 10

  • 09/27/2019
  • 3 minutes to read
    •  

The OpenSSH Client and OpenSSH Server are separately installable components in Windows Server 2019 and Windows 10 1809. Users with these Windows versions should use the instructions that follow to install and configure OpenSSH.

 Note

Users who acquired OpenSSH from the PowerShell GitHub repo (https://github.com/PowerShell/OpenSSH-Portable) should use the instructions from there, and should not use these instructions.

Installing OpenSSH from the Settings UI on Windows Server 2019 or Windows 10 1809

OpenSSH client and server are installable features of Windows 10 1809.

To install OpenSSH, start Settings then go to Apps > Apps and Features > Manage Optional Features.

Scan this list to see if OpenSSH client is already installed. If not, then at the top of the page select "Add a feature", then:

  • To install the OpenSSH client, locate "OpenSSH Client", then click "Install".
  • To install the OpenSSH server, locate "OpenSSH Server", then click "Install".

Once the installation completes, return to Apps > Apps and Features > Manage Optional Features and you should see the OpenSSH component(s) listed.

 Note

Installing OpenSSH Server will create and enable a firewall rule named "OpenSSH-Server-In-TCP". This allows inbound SSH traffic on port 22.

Installing OpenSSH with PowerShell

To install OpenSSH using PowerShell, first launch PowerShell as an Administrator. To make sure that the OpenSSH features are available for install:

PowerShellCopy

Then, install the server and/or client features:

PowerShellCopy

Uninstalling OpenSSH

To uninstall OpenSSH using the Windows Settings, start Settings then go to Apps > Apps and Features > Manage Optional Features. In the list of installed features, select the OpenSSH Client or OpenSSH Server component, then select Uninstall.

To uninstall OpenSSH using PowerShell, use one of the following commands:

PowerShellCopy

A Windows restart may be required after removing OpenSSH, if the service is in use at the time it was uninstalled.

Initial Configuration of SSH Server

To configure the OpenSSH server for initial use on Windows, launch PowerShell as an administrator, then run the following commands to start the SSHD service:

PowerShellCopy

Initial use of SSH

Once you have installed the OpenSSH Server on Windows, you can quickly test it using PowerShell from any Windows device with the SSH Client installed. In PowerShell type the following command:

PowerShellCopy

The first connection to any server will result in a message similar to the following:

Copy

The answer must be either "yes" or "no". Answering Yes will add that server to the local system's list of known ssh hosts.

You will be prompted for the password at this point. As a security precaution, your password will not be displayed as you type.

Once you connect you will see a command shell prompt similar to the following:

Copy

The default shell used by Windows OpenSSH server is the Windows command shell.

### Ubuntu 22.04 Minimal Installation Guide For users seeking a streamlined setup process on Ubuntu 22.04, following an approach that minimizes unnecessary packages and configurations becomes essential. The procedure described here aims at achieving such a minimal installation. #### Preparing for Installation Before starting the actual installation of Ubuntu 22.04, ensure hardware compatibility with the operating system. Verify sufficient disk space (at least 5 GB recommended), RAM (minimum 2GB but more is better), and processor capabilities are adequate[^1]. #### Downloading the ISO Image Obtain the official server edition ISO image from Canonical’s website which inherently comes as a minimal version suitable for servers or those who prefer installing only required components manually later. #### Creating Bootable Media Use tools like Rufus (on Windows) or `dd` command line utility (Linux/macOS) to create bootable USB drives using downloaded ISO files: ```bash sudo dd bs=4M if=/path/to/ubuntu.iso of=/dev/sdX status=progress && sync ``` Replace `/path/to/ubuntu.iso` with path where ISO file resides locally and `/dev/sdX` by target device identifier without partition number suffix e.g., sdb instead of sdb1. #### Installing Ubuntu Boot from created media selecting "Install Ubuntu Server". Choose language preferences during initial screens followed by network configuration including hostname setting up user accounts etc. When prompted about software selection opt-out everything except OpenSSH server unless specific needs dictate otherwise; this keeps installed package count low ensuring leaner environment post-installation. After completing these steps successfully reboot into newly installed OS instance ready for further customization according to personal requirements while maintaining minimalist principles throughout. --related questions-- 1. What considerations should be made before attempting a minimal installation? 2. How does one verify their computer meets minimum specifications prior to proceeding? 3. Can other versions besides the server edition achieve similar results regarding minimalism? 4. Are there alternative methods beyond utilizing Rufus or 'dd' for preparing live USBs under different host systems? 5. In what scenarios might adding additional default services prove beneficial despite aiming towards minimal deployments?
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值