Use SSH to manage Ubuntu in Windows

Source: Internet
Author: User
Abstract: SSH is a protocol used to provide security for remote login sessions and other network services. SSH includes two parts: client and server, this article mainly explains how to configure and manage Ubuntu in Windows using the SSH protocol. SSH is short for SecureShell. It is a security protocol created on the application layer and transport layer, providing a secure transmission and use environment for the computer shell. SSH is a protocol designed for security of remote login sessions and other network services.

Abstract: SSH is a protocol used to provide security for remote login sessions and other network services. SSH includes two parts: client and server, this article mainly explains how to configure and manage Ubuntu in Windows using the SSH protocol.

SSH protocol Introduction

SSH, short for Secure Shell, is a security protocol created on the application layer and transport layer, providing a Secure transmission and use environment for the computer shell. SSH is a protocol designed for security of remote logon sessions and other network services. Another advantage is that the data transmitted by SSH can be compressed to speed up transmission.

SSH was originally restricted by copyrights and encryption algorithms. Many people now switch to open-source free OpenSSH.

Build an SSH server in Ubuntu

SSH can be divided into opeenssh-client and openssh-server.

Openssh-client has been installed in Ubuntu by default and can be used to log on to other machines.

To enable the SSH service on the local machine, install openssh-server. Of course, the openssh-client may be re-installed due to version issues.

Next we will record the process of installing openssh-server under Ubunt 12.04.

(1) Try to install the openssh-server software package:

Sudo apt-get install openssh-server

However, there are two error messages to be resolved.

(2) install the specified version of openssh-client

The error message is as follows:

The following packages have unmet dependencies:

Openssh-server: Depends: openssh-client (=. 9p1-5ubuntu1) but. 9p1-5ubuntu1.1 is to be installed

This error indicates that the openssh-server dependency package openssh-client version to be installed does not meet the requirements.

The solution is to first install the specified version of openssh-client.

Sudo apt-get install openssh-client = 1:5. 9p1-5ubuntu1.1

(3) Install ssh-import-id

The following message is displayed, indicating that the software is not installed.

Recommends: ssh-import-id but it is not going to be installed

Run the following command to install the SDK:

Sudo apt-get install ssh-import-id

(4) test whether the installation is successful

Ps-e | grep ssh

If you see sshd, it indicates that openssh-server has been started.

(5) service configuration

The ssh-server configuration file is located in/etc/ssh/sshd_config. The SSH service port can be defined here. The default port is 22.

Stop Service

Sudo/etc/init. d/ssh stop

Start the service

Sudo/etc/init. d/ssh start

Install the SSH client in Windows

We can use the SSH client to manage Linux on Windows. The following two SSH clients are recommended.

1. PuTTY

Recommended reading:

How to achieve remote login control Linux platform http://www.linuxidc.com/Linux/2013-06/85266.htm through Putty

Putty connection to Ubuntu in VMWare problem solved http://www.linuxidc.com/Linux/2013-05/84819.htm

Configuration http://www.linuxidc.com/Linux/2013-05/84818.htm for VMware + Linux + Putty Environment

Putora system http://www.linuxidc.com/Linux/2013-01/78155.htm for controlling virtual machines with Putty Remote Login

2. Xshell

SecureCRT and Xshell login Ubuntu http://www.linuxidc.com/Linux/2012-04/58745.htm

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.