更新后 SSH 代理不起作用

更新后 SSH 代理不起作用

自从我在 Ubuntu 18.04 上安装了定期更新后,ssh 代理就不再起作用了。如果我尝试“ssh r146”(或我的密钥是授权密钥的任何其他主机),它会在命令行上提示我输入密码。

详细输出将返回:

ssh -v r146
OpenSSH_7.6p1 Ubuntu-4, OpenSSL 1.0.2n  7 Dec 2017
debug1: Reading configuration data /home/reichelt/.ssh/config
debug1: /home/reichelt/.ssh/config line 35: Applying options for r146
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Executing proxy command: exec ssh -W 139.18.11.146:22 ilabws
debug1: permanently_drop_suid: 1000
debug1: identity file /home/reichelt/.ssh/id_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file /home/reichelt/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/reichelt/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/reichelt/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/reichelt/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/reichelt/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/reichelt/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/reichelt/.ssh/id_ed25519-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6p1 Ubuntu-4
Enter passphrase for key '/home/reichelt/.ssh/id_rsa': 

我觉得这很好。

代理似乎正在运行:

ps -aux | grep ssh
root      1007  0.0  0.0  72296  5676 ?        Ss   10:05   0:00 /usr/sbin/sshd -D
reichelt  4106  0.0  0.0  11304   316 ?        Ss   10:06   0:00 /usr/bin/ssh-agent /usr/bin/im-launch env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
reichelt  6214  0.0  0.0  21536  1088 pts/1    S+   11:00   0:00 grep --color=auto ssh

如果我使用其他 ssh 工具(例如 scp),也会发生同样的情况。

/etc/log/apt/history.log以。。结束:

Start-Date: 2018-06-05  09:27:56
Commandline: /usr/bin/unattended-upgrade
Upgrade: liblouis-data:amd64 (3.5.0-1, 3.5.0-1ubuntu0.1)
End-Date: 2018-06-05  09:27:57

Start-Date: 2018-06-05  09:28:00
Commandline: /usr/bin/unattended-upgrade
Upgrade: liblouis14:amd64 (3.5.0-1, 3.5.0-1ubuntu0.1)
End-Date: 2018-06-05  09:28:00

Start-Date: 2018-06-05  09:28:04
Commandline: /usr/bin/unattended-upgrade
Upgrade: python3-louis:amd64 (3.5.0-1, 3.5.0-1ubuntu0.1)
End-Date: 2018-06-05  09:28:05

Start-Date: 2018-06-06  01:34:06
Commandline: packagekit role='update-packages'
Upgrade: libpulsedsp:amd64 (1:11.1-1ubuntu7, 1:11.1-1ubuntu7.1), pulseaudio:amd64 (1:11.1-1ubuntu7, 1:11.1-1ubuntu7.1), libncurses5:amd64 (6.1-1ubuntu1, 6.1-1ubuntu1.18.04), libncurses5:i386 (6.1-1ubuntu1, 6.1-1ubuntu1.18.04), libpq5:amd64 (10.3-1, 10.4-0ubuntu0.18.04), libncursesw5:amd64 (6.1-1ubuntu1, 6.1-1ubuntu1.18.04), libpulse0:amd64 (1:11.1-1ubuntu7, 1:11.1-1ubuntu7.1), libpulse0:i386 (1:11.1-1ubuntu7, 1:11.1-1ubuntu7.1), libtinfo5:amd64 (6.1-1ubuntu1, 6.1-1ubuntu1.18.04), libtinfo5:i386 (6.1-1ubuntu1, 6.1-1ubuntu1.18.04), libpulse-mainloop-glib0:amd64 (1:11.1-1ubuntu7, 1:11.1-1ubuntu7.1), libncurses5-dev:amd64 (6.1-1ubuntu1, 6.1-1ubuntu1.18.04), libtinfo-dev:amd64 (6.1-1ubuntu1, 6.1-1ubuntu1.18.04), ncurses-term:amd64 (6.1-1ubuntu1, 6.1-1ubuntu1.18.04), ncurses-bin:amd64 (6.1-1ubuntu1, 6.1-1ubuntu1.18.04), ncurses-base:amd64 (6.1-1ubuntu1, 6.1-1ubuntu1.18.04), pulseaudio-module-bluetooth:amd64 (1:11.1-1ubuntu7, 1:11.1-1ubuntu7.1), pulseaudio-utils:amd64 (1:11.1-1ubuntu7, 1:11.1-1ubuntu7.1)
End-Date: 2018-06-06  01:34:12

Start-Date: 2018-06-06  10:06:16
Commandline: /usr/bin/unattended-upgrade
Upgrade: git-man:amd64 (1:2.17.0-1ubuntu1, 1:2.17.1-1ubuntu0.1), git:amd64 (1:2.17.0-1ubuntu1, 1:2.17.1-1ubuntu0.1)
End-Date: 2018-06-06  10:06:23

我假设更新于 2018-06-06 01:34:12 完成并进行了更改,至少它昨天有效,今天停止工作。

这是一个已知问题吗/我可以进一步调试这个问题吗?

编辑这种情况仍然时有发生。在 4 次启动中的 3 次之后,我可以正常使用 ssh 代理及其 GUI;在 4 次启动中的一次中,我必须手动添加密钥。因此,我认为与更新无关。

相关内容