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