-------------------------------------
To set the root administrator account password:
sudo passwd root
Enter the normal user password and then modify it.
After the change, log out with root
To install Remote services:
$ sudo apt-get install Openssh-server
$ sudo/etc/init.d/ssh Restart
Check Service Status:
Systemctl--failed
Server responded "algorithm negotiation faild." cannot be remote,
Vi/etc/ssh/sshd_config
Finally, add the following information:
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,[email protected],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,[email protected]
Unable to use root remote, can be configured for OpenSSH server
$ sudo vi/etc/ssh/sshd_config
Locate the Permitrootlogin line and change to permitrootlogin Yes
Add parameters related to static IP, commenting on Dynamic DNS:
# The Primary network interface
Iface eth0 inet Static
Address 192.168.1.247
Netmask 255.255.255.0
Gateway 192.168.1.2
$sudo Ifdown eth0
$sudo ifup eth0
Test Link: OK.
The following page is attached to the reference information:
This error may be reported when you connect using an SSH client after installing Openssh-server, as shown in
650) this.width=650; "Src=" http://img.blog.csdn.net/20160919121341721?watermark/2/text/ Ahr0cdovl2jsb2cuy3nkbi5uzxqv/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity/center "Style=" Border:none;height:auto; "/>
Server responded "algorithm negotiation failed"
650) this.width=650; "Src=" http://img.blog.csdn.net/20160919121344596?watermark/2/text/ Ahr0cdovl2jsb2cuy3nkbi5uzxqv/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity/center "Style=" Border:none; "/>
Workaround
Modify the configuration file for SSH/etc/ssh/sshd_config
650) this.width=650; "Src=" http://img.blog.csdn.net/20160919121347113?watermark/2/text/ Ahr0cdovl2jsb2cuy3nkbi5uzxqv/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity/center "Style=" Border:none; "/>
In the configuration file, add:
650) this.width=650; "Src=" http://img.blog.csdn.net/20160919121349862?watermark/2/text/ Ahr0cdovl2jsb2cuy3nkbi5uzxqv/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity/center "Style=" Border:none; "/>
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,[email protected],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,[email protected]
650) this.width=650; "Src=" http://img.blog.csdn.net/20160919121353534?watermark/2/text/ Ahr0cdovl2jsb2cuy3nkbi5uzxqv/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity/center "Style=" Border:none; "/>
After restarting the SSHD service
650) this.width=650; "Src=" http://img.blog.csdn.net/20160919121355893?watermark/2/text/ Ahr0cdovl2jsb2cuy3nkbi5uzxqv/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity/center "Style=" Border:none;height:auto; "/>
It will be connected properly.
650) this.width=650; "Src=" http://img.blog.csdn.net/20160919121358347?watermark/2/text/ Ahr0cdovl2jsb2cuy3nkbi5uzxqv/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity/center "Style=" Border:none;height:auto; "/>
Send a Python test.
650) this.width=650; "Src=" http://img.blog.csdn.net/20160919121400862?watermark/2/text/ Ahr0cdovl2jsb2cuy3nkbi5uzxqv/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity/center "Style=" Border:none;height:auto; "/>
Ubuntu Configuration New Installation configuration toss a good freshman