Install the SSH secure Shell under Windows. There are two shortcuts after the default installation.
Need to install Openssh-server under Linux
Utuntu installed by default opens is-client, so do not need to install, but if not installed, then use Apt-get install installation.
Then confirm that the Sshserver service is open
Ps-e | grep ssh
If there is only ssh-agent and the ssh-server has not been started, you need /etc/init.d/ssh start. If you see sshd, it means that ssh-server has been started.
The ssh-server configuration file is located at / etc / ssh / sshd_config. Here you can define the SSH service port. The default port is 22. You can define other port numbers, such as 222. Then restart the SSH service:
sudo /etc/init.d/ssh resar
Use ifconfig to view the machine's IP address for SSH secure shell connection.
ssh connection:
1. First install the server side of ssh on the server.
$ sudo aptitude install openssh-server
2. Start ssh-server.
$ /etc/init.d/ssh restart
3. Confirm that ssh-server is working properly.
$ netstat -tlp
tcp6 0 0 *: ssh *: * LISTEN-
Seeing the above line of output indicates that ssh-server is already running.
Finally go back to windows and open the software and click quick connect to connect.
If the following message appears:
server responded “algorithm negotiation failed”
Modify the ssh configuration file / etc / ssh / sshd_config
Add 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, [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]
After restarting the sshd service (sudo service ssh restart), you can connect normally
Use SSH secure Shell to transfer files between windows and Linux