Windows sync files with SSH and Linux &linux open SSH&SSH client algorithm negotiation failed one of the workarounds

Source: Internet
Author: User
Tags hmac sha1

1. Installation, configuration and start-up

SSH sub-client openssh-client and Openssh-server if you just want to login to another machine SSH only need to install Openssh-client (Ubuntu has default installation, if not then sudo apt-get install Openssh-client), if you want to make the native SSH service open, you need to install Openssh-server

sudo apt-get install Openssh-server

Then confirm that the Sshserver is started:

Ps-e |grep SSH

If you see sshd that means Ssh-server has been activated.

If not, you can start this way:

Sudo/etc/init.d/ssh start

Ssh-server configuration file is located in/Etc/ssh/sshd_config, where you can define the SSH service port, the default port is 22, you can define yourself as a different port number, such as 222, here to change the properties of Permitrootlogin to Yes.

sudo gedit/etc/ssh/sshd_config

Then restart the SSH service:

Sudo/etc/init.d/ssh restart

Then use the following method to log in to SSH:

① Command line mode:

SSH [email protected] username for users on the 192.168.1.112 machine, you need to enter a password.

② Client Mode:

2. Problems and Solutions

SSH Client report algorithm negotiation failed one of the workarounds

Modify the sshd configuration file/etc/ssh/sshd_config

In the configuration file, add:

Ciphers aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr,3des-cbc,arcfour128,arcfour256, Arcfour,blowfish-cbc,cast128-cbcmacs Hmac-md5,hmac-sha1,[email protected],hmac-ripemd160,hmac-sha1-96, Hmac-md5-96kexalgorithms 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,[email protected]

After you restart the sshd service, you can connect normally.

The cause of this problem is the SSH upgrade, for security, the default is no longer the original encryption algorithm, we add it manually.

Http://www.cnblogs.com/zjutlitao/p/6223486.html

Windows sync files with SSH and Linux &linux open SSH&SSH client algorithm negotiation failed one of the workarounds

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.