{"id":175361,"date":"2024-05-08T18:50:17","date_gmt":"2024-05-08T10:50:17","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/175361.html"},"modified":"2024-05-08T18:50:31","modified_gmt":"2024-05-08T10:50:31","slug":"python%e5%a6%82%e4%bd%95%e7%99%bb%e5%bd%95%e5%bc%80%e5%90%aftotp%e8%ae%a4%e8%af%81%e7%9a%84linux%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/175361.html","title":{"rendered":"python\u5982\u4f55\u767b\u5f55\u5f00\u542ftotp\u8ba4\u8bc1\u7684linux\u670d\u52a1\u5668"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/27053220\/ec318ca9-ba87-4726-85d3-3417cab86ec6.webp\" alt=\"python\u5982\u4f55\u767b\u5f55\u5f00\u542ftotp\u8ba4\u8bc1\u7684linux\u670d\u52a1\u5668\" \/><\/p>\n<p><p>Python\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528<code>paramiko<\/code>\u5e93\u7ed3\u5408TOTP\uff08\u57fa\u4e8e\u65f6\u95f4\u7684\u4e00\u6b21\u6027\u5bc6\u7801\u7b97\u6cd5\uff09\u5e94\u7528\u6765\u5b9e\u73b0\u767b\u5f55\u5f00\u542fTOTP\u8ba4\u8bc1\u7684Linux\u670d\u52a1\u5668\u3002\u5176\u4e2d\uff0cTOTP\u8ba4\u8bc1\u8fc7\u7a0b\u9700\u8981\u751f\u6210\u7b26\u5408\u670d\u52a1\u5668\u8981\u6c42\u7684\u4e00\u6b21\u6027\u5bc6\u7801\uff0c\u8fd9\u5e38\u5e38\u901a\u8fc7\u4e00\u4e2aTOTP\u5ba2\u6237\u7aef\u6765\u5b8c\u6210\u3001\u5fc5\u987b\u4fdd\u8bc1\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u5668\u65f6\u95f4\u540c\u6b65\u3002\u901a\u5e38\u9996\u9009\u7684Python TOTP\u5e93\u662f<code>pyotp<\/code>\uff0c\u5b83\u53ef\u4ee5\u751f\u6210\u517c\u5bb9\u7684\u4e00\u6b21\u6027\u5bc6\u7801\u3002\u7ed3\u5408<code>paramiko<\/code>\u548c<code>pyotp<\/code>\uff0c\u53ef\u4ee5\u5b8c\u6210\u4e00\u4e2aSSH\u5ba2\u6237\u7aef\uff0c\u901a\u8fc7TOTP\u8ba4\u8bc1\u767b\u5f55Linux\u670d\u52a1\u5668\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u7406\u89e3TOTP\u4e0eSSH<\/h3>\n<\/p>\n<p><p><strong>TOTP\uff08Time-Based One-Time Password\uff09\u7b97\u6cd5<\/strong>\u751f\u6210\u7684\u5bc6\u7801\u662f\u57fa\u4e8e\u65f6\u95f4\u7684\u52a8\u6001\u5bc6\u7801\uff0c\u8fd9\u610f\u5473\u7740\u6bcf\u9694\u4e00\u5b9a\u65f6\u95f4\u8fd9\u4e2a\u5bc6\u7801\u5c31\u4f1a\u53d1\u751f\u6539\u53d8\u3002\u5728\u670d\u52a1\u5668\u7aef\uff0cTOTP\u53ef\u4ee5\u589e\u5f3a\u5b89\u5168\u6027\uff0c\u5b83\u901a\u5e38\u4e0e\u7528\u6237\u540d\u548c\u5bc6\u7801\u7684\u53cc\u56e0\u7d20\u8ba4\u8bc1\u914d\u5408\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><p><strong>SSH\uff08Secure Shell\uff09<\/strong> \u662f\u4e00\u79cd\u7f51\u7edc\u534f\u8bae\uff0c\u7528\u4e8e\u5b89\u5168\u5730\u901a\u8fc7\u4e0d\u5b89\u5168\u7684\u7f51\u7edc\u8bbf\u95ee\u8fdc\u7a0b\u8ba1\u7b97\u673a\u3002Python\u7684<code>paramiko<\/code>\u5e93\u63d0\u4f9b\u4e86\u4e00\u4e2aSSH\u7684\u5ba2\u6237\u7aef\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u51c6\u5907\u5de5\u4f5c<\/h3>\n<\/p>\n<p><p>\u5728\u5f00\u59cb\u524d\uff0c\u9700\u8981\u786e\u4fddPython\u73af\u5883\u5b89\u88c5\u6709<code>paramiko<\/code>\u548c<code>pyotp<\/code>\u5e93\u3002\u53ef\u4ee5\u4f7f\u7528<code>pip<\/code>\u6765\u5b89\u88c5\u8fd9\u4e9b\u5e93\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">pip install paramiko pyotp<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u83b7\u53d6TOTP\u79d8\u94a5\u540e\uff0c\u670d\u52a1\u5668\u5c31\u53ef\u4ee5\u8981\u6c42\u5ba2\u6237\u7aef\u5728\u6bcf\u6b21\u767b\u5f55\u65f6\u63d0\u4f9b\u57fa\u4e8e\u8be5\u79d8\u94a5\u548c\u5f53\u524d\u65f6\u95f4\u751f\u6210\u7684\u4e00\u6b21\u6027\u5bc6\u7801\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u751f\u6210TOTP\u5bc6\u7801<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u4f7f\u7528TOTP\uff0c\u5728\u9700\u8981\u4e8b\u5148\u5171\u4eab\u4e00\u4e2a\u79d8\u94a5\uff0c\u5b83\u88ab\u7528\u6765\u5728\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u4e4b\u95f4\u751f\u6210\u4e00\u6b21\u6027\u5bc6\u7801\u3002<code>pyotp<\/code>\u53ef\u4ee5\u4f7f\u7528\u8be5\u79d8\u94a5\u6765\u751f\u6210\u5bc6\u7801\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pyotp<\/p>\n<p>TOTP_SECRET = &#039;\u4f60\u7684TOTP\u79d8\u94a5&#039;<\/p>\n<p>totp = pyotp.TOTP(TOTP_SECRET)<\/p>\n<p>one_time_password = totp.now()  # \u751f\u6210\u5f53\u524d\u65f6\u95f4\u7684TOTP\u4e00\u6b21\u6027\u5bc6\u7801<\/p>\n<p>print(&quot;\u5f53\u524d\u4e00\u6b21\u6027\u5bc6\u7801:&quot;, one_time_password)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6b64\u6bb5\u4ee3\u7801\u53ef\u4ee5\u751f\u6210\u7528\u4e8e\u8eab\u4efd\u9a8c\u8bc1\u7684\u5f53\u524d\u6709\u6548\u7684\u4e00\u6b21\u6027\u5bc6\u7801\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528Paramiko\u767b\u5f55\u670d\u52a1\u5668<\/h3>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u9700\u8981\u6784\u5efa\u4e00\u4e2a<code>paramiko<\/code> SSH\u5ba2\u6237\u7aef\u6765\u5c1d\u8bd5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import paramiko<\/p>\n<h2><strong>\u521b\u5efaSSH\u5bf9\u8c61<\/strong><\/h2>\n<p>ssh = paramiko.SSHClient()<\/p>\n<h2><strong>\u81ea\u52a8\u63a5\u53d7\u4e0d\u5728\u672c\u5730known_hosts\u6587\u4ef6\u7684\u4e3b\u673a\u5bc6\u94a5<\/strong><\/h2>\n<p>ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())<\/p>\n<h2><strong>\u8fde\u63a5\u670d\u52a1\u5668<\/strong><\/h2>\n<p>try:<\/p>\n<p>    ssh.connect(hostname=&#039;\u670d\u52a1\u5668IP&#039;, username=&#039;\u4f60\u7684\u7528\u6237\u540d&#039;, password=&#039;\u4f60\u7684\u5e38\u89c4\u5bc6\u7801&#039;)<\/p>\n<p>except paramiko.ssh_exception.AuthenticationException:<\/p>\n<p>    # \u5982\u679c\u5e38\u89c4\u5bc6\u7801\u8ba4\u8bc1\u5931\u8d25\uff0c\u5219\u5c1d\u8bd5TOTP\u4e00\u6b21\u6027\u5bc6\u7801<\/p>\n<p>    ssh.connect(hostname=&#039;\u670d\u52a1\u5668IP&#039;, username=&#039;\u4f60\u7684\u7528\u6237\u540d&#039;, password=one_time_password)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u6574\u5408TOTP\u8ba4\u8bc1\u4e0eSSH\u8fde\u63a5<\/h3>\n<\/p>\n<p><p>\u6700\u540e\uff0c\u9700\u8981\u628a\u751f\u6210TOTP\u4e00\u6b21\u6027\u5bc6\u7801\u7684\u6b65\u9aa4\u548c\u521b\u5efaSSH\u8fde\u63a5\u7684\u6b65\u9aa4\u653e\u5230\u4e00\u8d77\uff0c\u5f62\u6210\u4e00\u4e2a\u5b8c\u6574\u7684\u767b\u5f55\u6d41\u7a0b\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import paramiko<\/p>\n<p>import pyotp<\/p>\n<p>def ssh_totp_login(host, username, regular_password, totp_secret):<\/p>\n<p>    totp = pyotp.TOTP(totp_secret)<\/p>\n<p>    one_time_password = totp.now()<\/p>\n<p>    ssh = paramiko.SSHClient()<\/p>\n<p>    ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())<\/p>\n<p>    try:<\/p>\n<p>        # \u5c1d\u8bd5\u4f7f\u7528\u5e38\u89c4\u5bc6\u7801\u767b\u5f55<\/p>\n<p>        ssh.connect(hostname=host, username=username, password=regular_password)<\/p>\n<p>        print(&quot;\u4f7f\u7528\u5e38\u89c4\u5bc6\u7801\u767b\u5f55\u6210\u529f&quot;)<\/p>\n<p>    except paramiko.ssh_exception.AuthenticationException as e:<\/p>\n<p>        # \u5982\u679c\u5e38\u89c4\u5bc6\u7801\u8ba4\u8bc1\u5931\u8d25\uff0c\u5219\u5c1d\u8bd5TOTP\u4e00\u6b21\u6027\u5bc6\u7801<\/p>\n<p>        try:<\/p>\n<p>            ssh.connect(hostname=host, username=username, password=one_time_password)<\/p>\n<p>            print(&quot;\u4f7f\u7528TOTP\u4e00\u6b21\u6027\u5bc6\u7801\u767b\u5f55\u6210\u529f&quot;)<\/p>\n<p>        except paramiko.ssh_exception.AuthenticationException:<\/p>\n<p>            print(&quot;\u767b\u5f55\u5931\u8d25\uff0c\u8bf7\u68c0\u67e5\u7528\u6237\u540d\u3001\u5bc6\u7801\u3001\u4ee5\u53caTOTP\u5bc6\u7801\u662f\u5426\u6b63\u786e&quot;)<\/p>\n<p>            ssh.close()<\/p>\n<p>            return<\/p>\n<p>    # \u767b\u5f55\u6210\u529f...<\/p>\n<p>    # \u8fd9\u91cc\u53ef\u4ee5\u6267\u884c\u547d\u4ee4\uff0c\u5904\u7406\u6570\u636e...<\/p>\n<p>    # \u5173\u95ed\u8fde\u63a5<\/p>\n<p>    ssh.close()<\/p>\n<h2><strong>\u8c03\u7528\u51fd\u6570\u8fdb\u884c\u767b\u5f55<\/strong><\/h2>\n<p>ssh_totp_login(&#039;\u670d\u52a1\u5668IP&#039;, &#039;\u4f60\u7684\u7528\u6237\u540d&#039;, &#039;\u4f60\u7684\u5e38\u89c4\u5bc6\u7801&#039;, &#039;\u4f60\u7684TOTP\u79d8\u94a5&#039;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u6838\u5fc3\u91cd\u70b9\u5185\u5bb9<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u4f7f\u7528<code>pyotp<\/code>\u751f\u6210TOTP\u4e00\u6b21\u6027\u5bc6\u7801<\/strong><\/li>\n<li><strong>\u901a\u8fc7<code>paramiko<\/code>\u5b9e\u73b0SSH\u534f\u8bae\u7684\u8fde\u63a5<\/strong><\/li>\n<li><strong>\u5c1d\u8bd5\u5148\u4f7f\u7528\u5e38\u89c4\u5bc6\u7801\u767b\u5f55\uff0c\u5982\u679c\u5931\u8d25\u5219\u4f7f\u7528TOTP\u4e00\u6b21\u6027\u5bc6\u7801\u767b\u5f55<\/strong><\/li>\n<\/ul>\n<p><p>\u5728\u5b9e\u9645\u64cd\u4f5c\u4e2d\uff0c\u8bf7\u786e\u4fdd\u66ff\u6362\u4ee3\u7801\u4e2d\u7684<code>\u670d\u52a1\u5668IP<\/code>\u3001<code>\u4f60\u7684\u7528\u6237\u540d<\/code>\u3001<code>\u4f60\u7684\u5e38\u89c4\u5bc6\u7801<\/code>\u548c<code>\u4f60\u7684TOTP\u79d8\u94a5<\/code>\u4e3a\u5b9e\u9645\u7684\u503c\u3002\u540c\u65f6\uff0c\u5bf9\u4e8e\u751f\u4ea7\u73af\u5883\uff0c\u5e94\u5f53\u8003\u8651\u9519\u8bef\u5904\u7406\u3001\u65e5\u5fd7\u8bb0\u5f55\u3001\u4ee5\u53ca\u5bc6\u7801\u7684\u5b89\u5168\u5b58\u50a8\u7b49\u65b9\u9762\u7684\u9700\u6c42\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. \u5982\u4f55\u5728Python\u4e2d\u5b9e\u73b0\u767b\u5f55\u5f00\u542fTOTP\u8ba4\u8bc1\u7684Linux\u670d\u52a1\u5668\uff1f<\/strong><\/p>\n<p>TOTP\uff08Time-based One-Time Password\uff09\u662f\u4e00\u79cd\u57fa\u4e8e\u65f6\u95f4\u7684\u4e00\u6b21\u6027\u5bc6\u7801\u8ba4\u8bc1\u673a\u5236\uff0c\u53ef\u7528\u4e8e\u589e\u5f3aLinux\u670d\u52a1\u5668\u7684\u5b89\u5168\u6027\u3002\u8981\u5728Python\u4e2d\u5b9e\u73b0\u767b\u5f55\u5f00\u542fTOTP\u8ba4\u8bc1\u7684Linux\u670d\u52a1\u5668\uff0c\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u8fdb\u884c\u64cd\u4f5c\uff1a<\/p>\n<ul>\n<li>\u9996\u5148\uff0c\u4f7f\u7528Python\u7684paramiko\u5e93\u5efa\u7acb\u4e0e\u670d\u52a1\u5668\u7684SSH\u8fde\u63a5\u3002<\/li>\n<li>\u5176\u6b21\uff0c\u901a\u8fc7paramiko\u5e93\u6267\u884c\u670d\u52a1\u5668\u4e0a\u7684\u547d\u4ee4\uff0c\u7528\u4e8e\u5f00\u542fTOTP\u8ba4\u8bc1\u3002<\/li>\n<li>\u63a5\u4e0b\u6765\uff0c\u4f7f\u7528Python\u7684onetimepass\u6a21\u5757\u751f\u6210\u52a8\u6001\u5bc6\u7801\uff0c\u8be5\u6a21\u5757\u5b9e\u73b0\u4e86\u57fa\u4e8eRFC 6238\u6807\u51c6\u7684TOTP\u7b97\u6cd5\u3002<\/li>\n<li>\u6700\u540e\uff0c\u5c06\u751f\u6210\u7684\u52a8\u6001\u5bc6\u7801\u4f20\u9012\u7ed9\u670d\u52a1\u5668\u8fdb\u884c\u8ba4\u8bc1\uff0c\u5b8c\u6210\u767b\u5f55\u8fc7\u7a0b\u3002<\/li>\n<\/ul>\n<p>\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-python\">import paramiko\nimport time\nimport onetimepass\n\ndef login_with_totp(server_ip, username, password):\n    ssh = paramiko.SSHClient()\n    ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())\n    ssh.connect(server_ip, username=username, password=password)\n    \n    # \u6267\u884c\u5f00\u542fTOTP\u8ba4\u8bc1\u7684\u547d\u4ee4\uff0c\u5177\u4f53\u547d\u4ee4\u6839\u636eLinux\u53d1\u884c\u7248\u800c\u5b9a\n    command = &quot;sudo totp-setup&quot;\n    ssh.exec_command(command)\n    \n    # \u751f\u6210\u52a8\u6001\u5bc6\u7801\n    totp_secret = &quot;your_totp_secret_key&quot;  # \u66ff\u6362\u4e3a\u5b9e\u9645\u7684TOTP\u5bc6\u94a5\n    dynamic_password = onetimepass.get_totp(totp_secret)\n    \n    # \u5c06\u52a8\u6001\u5bc6\u7801\u4f20\u9012\u7ed9\u670d\u52a1\u5668\u8fdb\u884c\u8ba4\u8bc1\n    stdin, stdout, stderr = ssh.exec_command(dynamic_password)\n    \n    ssh.close()\n\n# \u4f7f\u7528\u793a\u4f8b\uff1a\nlogin_with_totp(&quot;\u670d\u52a1\u5668IP\u5730\u5740&quot;, &quot;\u7528\u6237\u540d&quot;, &quot;\u5bc6\u7801&quot;)\n<\/code><\/pre>\n<p><strong>2. Python\u4e2d\u5982\u4f55\u751f\u6210TOTP\u52a8\u6001\u5bc6\u7801\u7528\u4e8e\u767b\u5f55Linux\u670d\u52a1\u5668\uff1f<\/strong><\/p>\n<p>\u5728Python\u4e2d\u751f\u6210TOTP\u52a8\u6001\u5bc6\u7801\uff0c\u53ef\u4ee5\u4f7f\u7528onetimepass\u6a21\u5757\u3002\u8be5\u6a21\u5757\u5b9e\u73b0\u4e86\u57fa\u4e8eRFC 6238\u6807\u51c6\u7684TOTP\u7b97\u6cd5\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u751f\u6210\u52a8\u6001\u5bc6\u7801\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u4ee3\u7801\u793a\u4f8b\uff1a<\/p>\n<pre><code class=\"language-python\">import onetimepass\n\ndef generate_totp_password(secret_key):\n    dynamic_password = onetimepass.get_totp(secret_key)\n    return dynamic_password\n\n# \u4f7f\u7528\u793a\u4f8b\uff1a\ntotp_secret_key = &quot;your_totp_secret_key&quot;  # \u66ff\u6362\u4e3a\u5b9e\u9645\u7684TOTP\u5bc6\u94a5\npassword = generate_totp_password(totp_secret_key)\nprint(&quot;\u52a8\u6001\u5bc6\u7801\uff1a&quot;, password)\n<\/code><\/pre>\n<p><strong>3. \u5982\u4f55\u5728Linux\u670d\u52a1\u5668\u4e0a\u5f00\u542fTOTP\u8ba4\u8bc1\uff1f<\/strong><\/p>\n<p>\u8981\u5728Linux\u670d\u52a1\u5668\u4e0a\u5f00\u542fTOTP\u8ba4\u8bc1\uff0c\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u8fdb\u884c\u64cd\u4f5c\uff1a<\/p>\n<ul>\n<li>\u9996\u5148\uff0c\u8bf7\u786e\u4fdd\u5df2\u5b89\u88c5\u9002\u7528\u4e8e\u60a8\u7684Linux\u53d1\u884c\u7248\u7684\u8ba4\u8bc1\u6a21\u5757\uff08\u5982libpam-google-authenticator\uff09\u3002<\/li>\n<li>\u5176\u6b21\uff0c\u8fd0\u884cTOTP\u8ba4\u8bc1\u8bbe\u7f6e\u547d\u4ee4\uff08\u5982google-authenticator\u6216totp-setup\uff09\uff0c\u8be5\u547d\u4ee4\u5c06\u5f15\u5bfc\u60a8\u751f\u6210TOTP\u5bc6\u94a5\u548c\u914d\u7f6eTOTP\u8ba4\u8bc1\u3002<\/li>\n<li>\u63a5\u4e0b\u6765\uff0c\u5c06\u751f\u6210\u7684TOTP\u5bc6\u94a5\uff08\u901a\u5e38\u4ee5\u4e8c\u7ef4\u7801\u5f62\u5f0f\uff09\u4fdd\u5b58\u5728\u5b89\u5168\u7684\u5730\u65b9\uff0c\u4ee5\u4fbf\u7ed1\u5b9a\u5230\u7528\u6237\u7684TOTP\u9a8c\u8bc1\u5e94\u7528\u7a0b\u5e8f\uff08\u5982Google Authenticator\uff09\u4e0a\u3002<\/li>\n<li>\u6700\u540e\uff0c\u901a\u8fc7\u914d\u7f6e\u670d\u52a1\u5668\u4e0a\u7684\u8ba4\u8bc1\u6a21\u5757\u548c\u76f8\u5173\u914d\u7f6e\u6587\u4ef6\uff0c\u5c06TOTP\u8ba4\u8bc1\u542f\u7528\u5e76\u4e0e\u7528\u6237\u8fdb\u884c\u5173\u8054\u3002<\/li>\n<\/ul>\n<p>\u5177\u4f53\u64cd\u4f5c\u6b65\u9aa4\u56e0Linux\u53d1\u884c\u7248\u800c\u5f02\uff0c\u53ef\u4ee5\u53c2\u8003\u76f8\u5e94\u7684\u6587\u6863\u6216\u6559\u7a0b\u8fdb\u884c\u64cd\u4f5c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528paramiko\u5e93\u7ed3\u5408TOTP\uff08\u57fa\u4e8e\u65f6\u95f4\u7684\u4e00\u6b21\u6027\u5bc6\u7801\u7b97\u6cd5\uff09\u5e94\u7528\u6765\u5b9e\u73b0\u767b\u5f55\u5f00\u542fTOTP\u8ba4 [&hellip;]","protected":false},"author":3,"featured_media":175384,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/175361"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=175361"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/175361\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/175384"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=175361"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=175361"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=175361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}