SSH connection server and SCP upload file method

Source: Internet
Author: User

Local console input SSH [email protected] Extranet IP or intranet IP, example: SSH [email protected] This is the user named root user login 192.168.133.196 This address is located in the background. If you are prompted with the following red partial error:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@ warning:remote HOST Identification has changed! @

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

IT is POSSIBLE this SOMEONE is DOING SOMETHING nasty!

Someone could is eavesdropping on your right now (Man-in-the-middle attack)!

It is also possible, a host key has just been changed.

The fingerprint for the RSA key sent by the remote host is

07:36:8e:d0:72:88:38:f7:21:10:c3:12:d6:35:ad:55.

Please contact your system administrator.

Add correct host key in/users/watsy/.ssh/known_hosts to get rid of the this message. Offending RSA key in/users/watsy/.ssh/known_hosts:1 RSA host key for 192.168.133.196 had changed and you have requested  Strict checking. Host Key verification failed.

The above error appears in console input: RM-RF ~/.ssh/known_hosts

Log in to the background and open a console window for uploading files

Scp-p 22/home/desktop.js [Email protected]:/usr/server/tomcat7/webapps/

The above instruction is very good to understand that SCP is called the SCP Tool-P and 22 can be omitted,/home/desktop.js is the file address of my local file to upload, [email protected] is the root of this account login back to the address,

:/usr/server/tomcat7/webapps/is the directory under which the file you want to upload is placed under the 192.168.133.196 address.

To add: If you don't know how to view the file path with your Mac, you can open safari and drag the file you want to get the path to the Safari's address bar, where the path to the file will appear in the Address bar.

SSH connection server and SCP upload file method

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.