在尝试从HP-UX登录远程计算机时,我遇到了SFTP :: Foreign的一个非常奇怪的问题。奇怪的是,这个问题很难再现。使用SFTP :: Foreign登录的程序,每个工作日同时运行,一到两周就会失败。它使用RSA密钥对服务器进行身份验证。
我启用了-vvv跟踪,我希望在这里我会找到一些帮助。我在身份验证成功和失败时捕获了日志。下面我将在差异开始时放置部分日志
登录成功时,这是日志的一部分
debug1: Offering RSA public key: <intentionally hidden by me>
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug2: input_userauth_pk_ok: <intentionally hidden by me>
debug3: sign_and_send_pubkey: <intentionally hidden by me>
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
这是记录失败时的一部分
debug1: Offering RSA public key: <intentionally hidden by me>
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password
我得到的错误是:
Permission denied, please try again.
有什么想法吗?