关于AS5 SSH支持key认证的完全解决方案
发布公匙到服务器端,会在服务器端自动生成.ssh/authorized_keys这个文件 20 reverse mapping checking getaddrinfo for macbook_air failed - POSSIBLE BREAK-IN ATTEMPT! root@192.168.15.64's password: 输入192.168.15.64的root密码 Now try logging into the machine, with "ssh '192.168.15.64'", and check in: .ssh/authorized_keys to make sure we haven't added extra keys that you weren't expecting. 提示:ssh-copy-id 这个工具是针对22号端口,如果对方ssh端口是2520,那么就要修改为: ssh-copy-id -i /root/.ssh/id_rsa .pub “-p 2520 192.168.15.64” Server: [root@server .ssh]# ll 查看是否有authorized_keys生成 total 16 -rw------- 1 root root 393 Feb 23 22:28 authorized_keys -rw-r--r-- 1 root root 395 Feb 23 21:49 known_hosts [root@server .ssh]# cat authorized_keys确认是否发布成功 (编辑:源码网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |