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