0%

scp传输报错

The authenticity of host '[192.168.1.154]:10086 ([192.168.1.154]:10086)' can't be established.
RSA key fingerprint is SHA256:ehS4wKub7nvCZtPNZjeGCb8PM4tYj+zi+TcA2hdNhB0.
RSA key fingerprint is MD5:6c:b0:36:1c:68:3d:12:96:87:3f:0a:32:b2:13:ba:c0.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[192.168.1.154]:10086' (RSA) to the list of known hosts.
    
    |-----------------------------------------------------------------|

    | This system is for the use of authorized users only.		  |

    | Individuals using this computer system without authority, or in |

    | excess of their authority, are subject to having all of their	  |

    | activities on this system monitored and recorded by system      |

    | personnel.						          |

    |							          |

    | Anyone using this system expressly consents to such monitoring  |

    | and is advised that if such monitoring reveals possible	  |

    | evidence of criminal activity, system personnel may provide the |

    | evidence of such monitoring to law enforcement officials.	  |

    |-----------------------------------------------------------------|

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0650 for '/root/.ssh/id_rsa' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "/root/.ssh/id_rsa": bad permissions
Password: 

解决:id_rsa密钥降低权限,降为600
[root@to8to java_run]# ll /root/.ssh/id_rsa
-rw-r-x---+ 1 root root 1675 May 15 10:07 /root/.ssh/id_rsa
[root@to8to java_run]# chmod g-r /root/.ssh/id_rsa
[root@to8to java_run]# ll /root/.ssh/id_rsa
-rw---x---+ 1 root root 1675 May 15 10:07 /root/.ssh/id_rsa
[root@to8to java_run]# chmod -x /root/.ssh/id_rsa
[root@to8to java_run]# ll /root/.ssh/id_rsa
-rw-------+ 1 root root 1675 May 15 10:07 /root/.ssh/id_rsa

参考
https://www.cnblogs.com/softidea/p/6208725.html