Support icon indicating copy to clipboard operation
Support copied to clipboard

Remote with ssh

Open sebtiz13 opened this issue 6 years ago • 4 comments

Hello, The remote with protocol ssh its not supported ?

I have just : "Could not read from remote repository. Please make sure you have the correct access rights and the repository exists."

The support it's planned ?

sebtiz13 avatar Sep 11 '19 12:09 sebtiz13

Hi Sebtiz13. Do you mean using an ssh remote url? This should be working, I use it a lot.

GitFiend uses the same config that you have set at the command line, so I recommend checking that git fetch is working at the command line first for your repo.

GitFiend avatar Sep 12 '19 13:09 GitFiend

Yes i use ssh remote url

Command git fetch on Git Bash and others Git Client working

OS: Windows 10 My repo config:

[core]
	repositoryformatversion = 0
	filemode = false
	bare = false
	logallrefupdates = true
	symlinks = false
	ignorecase = true
[remote "origin"]
	url = ssh://[email protected]:10022/myproject/myproject.git
	fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
	remote = origin
	merge = refs/heads/master
[branch "develop"]
	remote = origin
	merge = refs/heads/develop

Maybe Its due to ssh agent on .bashrc ?

env=~/.ssh/agent.env

agent_load_env () { test -f "$env" && . "$env" >| /dev/null ; }

agent_start () {
    (umask 077; ssh-agent >| "$env")
    . "$env" >| /dev/null ; }

agent_load_env

# agent_run_state: 0=agent running w/ key; 1=agent w/o key; 2= agent not running
agent_run_state=$(ssh-add -l >| /dev/null 2>&1; echo $?)

if [ ! "$SSH_AUTH_SOCK" ] || [ $agent_run_state = 2 ]; then
    agent_start
    ssh-add
elif [ "$SSH_AUTH_SOCK" ] && [ $agent_run_state = 1 ]; then
    ssh-add
fi

unset env

sebtiz13 avatar Sep 13 '19 18:09 sebtiz13

That could be it. Gitfiend isn’t using git bash to run git commands. Does git fetch work in cmd? I think there’s an option when installing git for windows to add commands to cmd for git if not. Unfortunately I don’t have access to a windows machine as I’m away on holiday right now.

GitFiend avatar Sep 16 '19 20:09 GitFiend

Yes git fetch work in cmd, but doesnt use ssh-agent, so the problem its maybe the suppot of ssh key ? It's encrypted on AES-128 in CBC mode.

I dont know the probablies problems with key.

No problem it's not really urgent, I can use the commands for the moment. Good holiday

sebtiz13 avatar Sep 17 '19 07:09 sebtiz13