Remotely link a Linux server via SSH on Windows [go]

Source: Internet
Author: User
Tags ssh access

This article turns from

[Http://jingyan.baidu.com/article/6d704a130de40e28db51cab5.html]

[Http://www.cnblogs.com/mliudong/p/4094519.html]

Today want to install a Linux server, want to move it to the computer room, but also to achieve through the other computer access to the server, through the Windows installed SSH access to the Linux server, found that the link is not on the Linux server through Baidu found to install Ssh-server, So Baidu installed the tutorial (http://jingyan.baidu.com/article/6d704a130de40e28db51cab5.html), but the installation is still a problem, after Baidu through the following address (http:// www.cnblogs.com/mliudong/p/4094519.html) 's blog post was successfully installed and successfully implemented on Windows computers to access the Linux server.

The following contents are reproduced:

Linux operation log: [1] telnet settings

There is a Linux server, installed Ubuntu Server system, you want to be able to remotely access the Linux server under Windows System, similar to the Remote Desktop under Windows System.

Tools/Materials
    • Ubuntu Server operating System
    • Win7 Operating system
    • Ssh
Method/Step
    1. If you want a remote Linux server, you first need to open the SSH service on the server, the installation command is as follows:

      sudo apt-get install Openssh-server

    2. In the prompt, enter "Y" to continue waiting for the installation, as shown in the successful installation

    3. Start the Ssh-server service, which is automatically started by default after installation, and can be confirmed with the following command:

      Ps-e |grep ssh, if seen in the SSHD instructions Ssh-server started successfully

      Start sshserver command: Service ssh start or sudo/etc/init.d/ssh start

      Shutdown sshserver Command: Service SSH stop

      Restart sshserver command: Service ssh restart

    4. The Ssh-server configuration file is located in/etc/ssh/sshd_config, where you can define the service port for SSH, the default port is 22, and you can define it yourself as a different port number, such as 333.

      After setting up successfully, restart the SSH service:

      Sudo/etc/init.d/ssh sto

      Sudo/etc/init.d/ssh start

      Or: Service ssh restart

    5. Successful start ssh-server, should be able to telnet, after testing, normal account can be remote login, root account does not, but Root has super privilege, is what we need, so need to adjust the configuration file, allow root can also telnet

    6. Open root Telnet permission

      Vi/etc/ssh/sshd_config

      Modify Permitrootlogin Without-password to permitrootlogin Yes

    7. Execute command service SSH restart, restart Ssh-server

    8. 8

      After the above operation, the configuration on the Linux server has ended, successfully opened the Ssh-server, the following need we on the Win7 system with the use of SSH tools to remote access, open Baidu, download the tool from Baidu (installation of the SSH process on Windows omitted)

The following contents are reproduced:

Ubuntu Install Openssh-server report relies on the wrong resolution process

Ubuntu comes with openssh-client, so you can

1 ssh[email protected]

To connect to Linux remotely

But to be connected via SSH, the Ubuntu system needs to be openssh-server and can be

1 ps-e | grepssh

To see if the sshd is not shown, it is not installed Openssh-server

Available through

1 sudoapt-get installopenssh-server

To install Openssh-server, if successful, the installation will succeed if it encounters

123456789101112 $ sudo Apt-get install openssh-server reading the package list ... Complete the reading status information ... Finish        There are some packages that cannot be installed. If you are using the unstable release, this may be     openssh-server: dependency: openssh-client (= 1:6.6P1-2UBUNTU1) e: cannot fix the error because you require certain packages to remain current, that is, they destroy the dependencies between packages.

This is because, Openssh-server is dependent on Openssh-clien, that Ubuntu did not bring openssh-client? The original Openssh-clien is the same as the version that is dependent on the Openssh-server to be installed.

1 1:6.6p1-2ubuntu1

So to install the corresponding version of the Openssh-clien, to cover off the Ubuntu comes with

1234567891011121314151617181920 $ sudo apt-get install openssh-client=1:6.6p1-2ubuntu1正在读取软件包列表... 完成正在分析软件包的依赖关系树       正在读取状态信息... 完成       建议安装的软件包:  libpam-ssh keychain monkeysphere下列软件包将被【降级】:  openssh-client升级了 0 个软件包,新安装了 0 个软件包,降级了 1 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。需要下载 566 kB 的软件包。解压缩后会消耗掉 0 B 的额外空间。您希望继续执行吗? [Y/n] y获取:1 http://cn.archive.ubuntu.com/ubuntu/ trusty/main openssh-client amd64 1:6.6p1-2ubuntu1 [566 kB]下载 566 kB,耗时 2秒 (212 kB/s)        dpkg:警告:downgrading openssh-client from 1:6.6p1-2ubuntu2 to 1:6.6p1-2ubuntu1(正在读取数据库 ... 系统当前共安装有 200015 个文件和目录。)Preparing to unpack .../openssh-client_1%3a6.6p1-2ubuntu1_amd64.deb ...Unpacking openssh-client (1:6.6p1-2ubuntu1) over (1:6.6p1-2ubuntu2) ...Processing triggers for man-db (2.6.7.1-1) ...正在设置 openssh-client (1:6.6p1-2ubuntu1) ...

Can be seen, prompted the system openssh-client is degraded, so that the installation of Openssh-server can be successful!

Remotely link a Linux server via SSH on Windows [go]

Related Article

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.