{"id":70162,"date":"2023-08-04T22:23:24","date_gmt":"2023-08-04T14:23:24","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=70162"},"modified":"2023-08-04T22:23:24","modified_gmt":"2023-08-04T14:23:24","slug":"linux-ssh-withon-passwd","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-ssh-withon-passwd.html","title":{"rendered":"Linux\u4e0bssh\u9ad8\u7ea7\u4f7f\u7528–\u514d\u5bc6\u767b\u5f55"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u5728linux\u7cfb\u7edf\u4e2d\u5bc6\u7801\u7684\u4fdd\u5b58\u662f\u975e\u5e38\u91cd\u8981\u7684\uff0c\u5728\u4f01\u4e1a\u4e2d\u7684WEB\u96c6\u7fa4\u73af\u5883\u4e2d\uff0c\u8fdb\u884c\u7edf\u4e00\u7684\u7248\u672c\u66f4\u65b0\u548c\u914d\u7f6e\u6587\u4ef6\u7684\u540c\u6b65\u514d\u5bc6\u767b\u5f55\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002\u5728\u81ea\u52a8\u5316\u8fd0\u7ef4\uff0c\u7edf\u4e00\u7ba1\u7406\u90fd\u662f\u79bb\u4e0d\u5f00Linux\u7684\u514d\u5bc6\u767b\u5f55\u3002\u4e0b\u9762\u6211\u4eec\u6765\u770b\u4e0b\u514d\u5bc6\u767b\u5f55\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n 1.Linux\u4e0b\u751f\u6210\u5bc6\u94a5<\/strong><\/div>\n ssh-keygen\u7684\u547d\u4ee4\u624b\u518c\uff0c\u901a\u8fc7\u201dman ssh-keygen\u201c\u547d\u4ee4\uff1a \u901a\u8fc7\u547d\u4ee4\u201dssh-keygen -t rsa\u201c \u751f\u6210\u4e4b\u540e\u4f1a\u5728\u7528\u6237\u7684\u6839\u76ee\u5f55\u751f\u6210\u4e00\u4e2a \u201c.ssh\u201d\u7684\u6587\u4ef6\u5939 \u8fdb\u5165\u201c.ssh\u201d\u4f1a\u751f\u6210\u4ee5\u4e0b\u51e0\u4e2a\u6587\u4ef6 authorized_keys:\u5b58\u653e\u8fdc\u7a0b\u514d\u5bc6\u767b\u5f55\u7684\u516c\u94a5,\u4e3b\u8981\u901a\u8fc7\u8fd9\u4e2a\u6587\u4ef6\u8bb0\u5f55\u591a\u53f0\u673a\u5668\u7684\u516c\u94a5\r\n\r\nid_rsa : \u751f\u6210\u7684\u79c1\u94a5\u6587\u4ef6\r\n\r\nid_rsa.pub \uff1a \u751f\u6210\u7684\u516c\u94a5\u6587\u4ef6\r\n\r\nknow_hosts : \u5df2\u77e5\u7684\u4e3b\u673a\u516c\u94a5\u6e05\u5355\r\n\r\n\u5982\u679c\u5e0c\u671bssh\u516c\u94a5\u751f\u6548\u9700\u6ee1\u8db3\u81f3\u5c11\u4e0b\u9762\u4e24\u4e2a\u6761\u4ef6\uff1a<\/pre>\n |