Using SSH Secure shell for transferring files between Windows and Linux

Source: Internet
Author: User
Tags hmac sha1 ssh secure shell



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

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.