Some Problems and Solutions for ubuntu remote connection

Source: Internet
Author: User
Tags hmac

Some Problems and Solutions for ubuntu remote connection

1. to remotely connect to a linux host on the Windows platform, download the remote connection client on the window, such as SSH, SecureCRT, and putty.

2. What is important about this is that you also need to install the SSH service program on the linux host. Otherwise, it cannot be connected. The principle is very simple. in linux, you need a program to accept remote client connections, we need to install this program on linux. Command attachment:

sudo apt-get install openssh-server

After installation, the system automatically starts the service program.

3. server responded "Algorithm negotiation failed"

The solution on the Internet is very effective:

Modify the ssh configuration file/etc/ssh/sshd_config

Add the following in the configuration file:

Ciphers aes128-cbc, aes192-cbc, aes256-cbc, aes128-ctr, aes192-ctr, aes256-ctr, 3des-cbc, arcfour128, arcfour256, arcfour, blowfish-cbc, cast128-cbc

MACs hmac-md5, hmac-sha1, umac-64@openssh.com, hmac-ripemd160, hmac-sha1-96, hmac-md5-96

KexAlgorithms diffie-hellman-group1-sha1, diffie-hellman-group14-sha1, diffie-hellman-group-exchange-sha1, diffie-hellman-group-exchange-sha256, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, diffie-hellman-group1-sha1

After the sshd service is restarted, the connection can be established normally.

Sudo service ssh restart

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.