-
-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ssh agent 一段时间会出问题 #51
Comments
有报什么错吗? |
报错也是和这帖子里是一样的报错: 2023/01/18 06:24:29 agent 11: agent: client error: write unix ->/Users/bene/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock: write: broken pipe
error fetching identities: agent refused operation |
我看给出的解法是:https://help.okta.com/asa/en-us/Content/Topics/Adv_Server_Access/docs/setup/ssh.htm 1、你执行 2、你的 3、你怎么样登录的,是 |
这个解决办法我看过,需要另外在装个软件,我是比较排斥这种的,所以就没有去尝试; 下面是我的config配置: Host *
IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"
ServerAliveInterval 1800
TCPKeepAlive no
ForwardAgent yes
ServerAliveInterval 30
ServerAliveCountMax 5
Host desktop-debian
Hostname 192.168.6.9
User root
Host openwrt
Hostname xxx.xxx.xxx.xxx
User root
Host openwrt-frp
Hostname xxx.xxx.com
User root
Port 20222
Host nuc
Hostname xxx.xxx.xxx.xxx
User root
Host nas
Hostname xxx.xxx.xxx.xxx
User root 我平常使用的是自己设置alias的, |
是 现在 在支持 |
|
和 IdentityAgent 是同一个路径?有没有 |
加个 --debug 参数登录,看看有哪些 agent 相关的输出? |
可能我之前没说明白,我在描述下使用场景和使用问题:
在使用tssh从当前主机登陆远程主机没有问题,执行 2023/01/18 06:24:29 agent 11: agent: client error: write unix ->/Users/bene/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock: write: broken pipe
error fetching identities: agent refused operation 之后需要使用ssh协议的地方都会有问题,因为和1password这条路不通了嘛。 而使用openssh则没有任何问题。 |
一段时间,大约是要多久?我看看我这里能不能复现。 |
刚测试了下,大概一分钟的样子 |
我没有安装 1password,用的 mac 自带的 ssh-agent ,刚试了下,转发到远程服务器之后,至少十几分钟都没问题。 你在登录前、登录后( 没问题时,有问题时 ),分别在本地 mac 中( 另一个终端 )执行 |
远程机器: ❯ ls -i $SSH_AUTH_SOCK
60817471 /tmp/ssh-XXXX3PSMSF/agent.550614 本地机器: ❯ ls -i $SSH_AUTH_SOCK
124395469 '/Users/xxxx/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock' 正常情况和出问题时都是一样的。 |
也就是,本地机器,一直都是 |
是的,本地机器的不会变,远程的机器每一次新的ssh会话都会变。 |
有问题时,也会弹出来?是弹出来之后,在你没确认之前就报错,还是在你确认之后才报错? |
你可以把 https://github.com/trzsz/trzsz-ssh/blob/a71ac3a3e4cb4b5452a46b8b53b3137c3d7c580b/tssh/login.go#L848C18-L848C32 这一行 如果不知怎么改,可以加 README 最下面的 QQ 群。 |
不行的,这俩函数的入场都不一样。 |
第二个参数直接写你那个路径 |
看来 1password 那个 unix socket 连上之后,会超时,不能一直用。 |
好的,那我先关闭issue。 |
具体详情可以看下这个帖子,使用原版ssh就没有这个问题。
The text was updated successfully, but these errors were encountered: