Skip to main content
December 2, 2022
Question

error: ssh: Could not resolve hostname sign

  • December 2, 2022
  • 7 replies
  • 1916 views

Hi,
I want to turn off the SSH agent of 1password.
I got the error "error: ssh: Could not resolve hostname sign" when I want to commit the git.
I have fallow this article : https://stackoverflow.com/questions/74395984/git-commit-error-could-not-connect-to-socket-is-the-agent-running-fatal-fai
Do I delete other config?


1Password Version: 8.9.8
Extension Version: Not Provided
OS Version: macOS 13.0.1
Browser:_ Not Provided
Referrer: forum-search:https://1password.community/search?Search=error%3A%20ssh%3A%20Could%20not%20resolve%20hostname%20sign

7 replies

Jack_P_1P
1Password Employee
December 2, 2022

Hi @r1235613:

Just to confirm, are you getting that error with the 1Password SSH agent configured, or is that after turning off the 1Password SSH agent? Let me know.

Jack

December 3, 2022

Hi @Jack_P_1P
This problem happened after disabling the 1password agent and following the article.
Can you give me the correct steps on how to disable the 1password agent?

Jack_P_1P
1Password Employee
December 5, 2022

Hi @r1235613:

What is the output of git config gpg.ssh.program? Let me know.

Jack

December 7, 2022

Hi,
/usr/bin/ssh

December 7, 2022

And error log is
16:22:22.945: [hw5] git -c credential.helper= -c core.quotepath=false -c log.showSignature=false init
Initialized empty Git repository in /Users/r1235613/CLionProjects/hw5/.git/
16:22:53.426: [hw5] git -c credential.helper= -c core.quotepath=false -c log.showSignature=false add --ignore-errors -A -- src/common/ppm.cpp src/common/CycleTimer.h src/kernel.cu src/main.cpp src/Makefile src/mandelbrotSerial.cpp src/mandelbrotThreadRef.a src/kernel.h src/mandelbrotThread.cpp
16:22:53.461: [hw5] git -c credential.helper= -c core.quotepath=false -c log.showSignature=false add --ignore-errors -A -- src
16:22:59.179: [hw5] git -c credential.helper= -c core.quotepath=false -c log.showSignature=false add --ignore-errors -A -f -- src/common/ppm.cpp src/common/CycleTimer.h src/main.cpp src/kernel.h src/mandelbrotThread.cpp src/mandelbrotSerial.cpp src/kernel.cu src/Makefile src/mandelbrotThreadRef.a
16:22:59.195: [hw5] git -c credential.helper= -c core.quotepath=false -c log.showSignature=false commit -F /private/var/folders/js/tk6rs0dn6k7438w5nhb91dsh0000gn/T/git-commit-msg-.txt --
error: ssh: Could not resolve hostname sign: nodename nor servname provided, or not known?
fatal: failed to write commit object

December 7, 2022

I resolve this issue.
The problem is Jetbiains' software will auto-signing with GPG key.
When you disable the 1password agent, Jetbrains could not located path of gpg key.
So, just disable gpg sing function or assign a new path of gpg key.

Jack_P_1P
1Password Employee
December 7, 2022

Hi @r1235613:

Glad to hear you were able to figure it out. Please get in touch if there's anything we can help you with in the future.

Jack