error: ssh: Could not resolve hostname sign

r1235613
r1235613
Community Member

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:error: ssh: Could not resolve hostname sign

Comments

  • 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

  • r1235613
    r1235613
    Community Member
    edited December 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?

  • Hi @r1235613:

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

    Jack

  • r1235613
    r1235613
    Community Member

    Hi,
    /usr/bin/ssh

  • r1235613
    r1235613
    Community Member

    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

  • r1235613
    r1235613
    Community Member
    edited December 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.

  • 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

This discussion has been closed.