# DVC ssh error. \[Errno 111\] Connect call failed

**URL:** <https://discuss.dvc.org/t/dvc-ssh-error-errno-111-connect-call-failed/2220>\
**Category:** Questions\
**Created:** [September 19, 2024, 7:45pm UTC](https://discuss.dvc.org/t/dvc-ssh-error-errno-111-connect-call-failed/2220 "2024-09-19T19:45:11Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![ritacc](https://avatars.discourse-cdn.com/v4/letter/r/eada6e/32.png) [@ritacc](https://discuss.dvc.org/u/ritacc)\
**Post date:** [September 23, 2024, 8:29pm UTC](https://discuss.dvc.org/t/dvc-ssh-error-errno-111-connect-call-failed/2220/3 "2024-09-23T20:29:36Z")

</div>

Update:

1. fixed for local repo on the same server as the remote server. Need to remove the port number 2222 and it works: “dvc remote add -d myremote ssh://myusername@server:/mypath/dvcstore”
2. local repo on my Mac still has error connecting to remote server.  
I remove the port number and use the same one as in 1). My Mac firewall is active. I followed thoese steps in this doc  
[SSH remote: unexpected error - Permission denied](https://discuss.dvc.org/t/ssh-remote-unexpected-error-permission-denied/1300)  
dvc remote modify --local myremote password YOUR\_ASSPHRASE  
However, it still ask me for ssh key passphrase when dvc pull. I checked the passphrase is correct. Also test for dvc pull a single file, same error.

dvc pull -v dir\_test  
2024-09-23 15:12:35,592 DEBUG: v3.55.2 (pip), CPython 3.12.0 on macOS-13.7-arm64-arm-64bit  
2024-09-23 15:12:35,593 DEBUG: command: /Library/Frameworks/Python.framework/Versions/3.12/bin/dvc pull -v dir\_test  
2024-09-23 15:12:37,753 DEBUG: Checking if stage ‘dir\_test’ is in ‘dvc.yaml’  
Collecting |0.00 [00:00, ?entry/s]  
FetchingEnter passphrase for key ‘/Users//.ssh/id\_ed25519’:  
2024-09-23 15:12:46,415 ERROR: failed to connect to ssh (/rsrch8/home/tdccct/apps/dvcstore/files/md5) - Permission denied for user ychen52 on host seadragon: Permission denied for user ychen52 on host seadragon  
Traceback (most recent call last):  
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/sshfs/utils.py”, line 27, in wrapper  
return await func(\*args, \*\*kwargs)  
^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/sshfs/spec.py”, line 97, in \_connect  
client = await self.\_stack.enter\_async\_context(\_raw\_client)  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/contextlib.py”, line 647, in enter\_async\_context  
result = await \_enter(cm)  
^^^^^^^^^^^^^^^^  
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/asyncssh/misc.py”, line 299, in **aenter**  
self.\_coro\_result = await self.\_coro  
^^^^^^^^^^^^^^^^  
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/asyncssh/connection.py”, line 8834, in connect  
return await asyncio.wait\_for(  
^^^^^^^^^^^^^^^^^^^^^^^  
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/tasks.py”, line 510, in wait\_for  
return await fut  
^^^^^^^^^  
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/asyncssh/connection.py”, line 453, in \_connect  
await options.waiter  
asyncssh.misc.PermissionDenied: Permission denied for user ychen52 on host seadragon

The above exception was the direct cause of the following exception:

Traceback (most recent call last):  
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/dvc\_data/index/fetch.py”, line 117, in fetch  
data.fs.exists(data.path)  
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/dvc\_objects/fs/base.py”, line 451, in exists  
return self.fs.exists(path)  
^^^^^^^  
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/funcy/objects.py”, line 47, in **get**  
return prop. **get** (instance, type)  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/funcy/objects.py”, line 25, in **get**  
res = instance. **dict** [self.fget. **name**] = self.fget(instance)  
^^^^^^^^^^^^^^^^^^^  
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/dvc\_ssh/ **init**.py”, line 126, in fs  
return \_SSHFileSystem(\*\*self.fs\_args)  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/fsspec/spec.py”, line 81, in **call**  
obj = super(). **call** (\*args, \*\*kwargs)  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/sshfs/spec.py”, line 67, in **init**  
self.\_client, self.\_pool = self.connect(  
^^^^^^^^^^^^^  
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/fsspec/asyn.py”, line 118, in wrapper  
return sync(self.loop, func, \*args, \*\*kwargs)  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/fsspec/asyn.py”, line 103, in sync  
raise return\_result  
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/fsspec/asyn.py”, line 56, in \_runner  
result[0] = await coro  
^^^^^^^^^^  
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/tasks.py”, line 510, in wait\_for  
return await fut  
^^^^^^^^^  
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/sshfs/utils.py”, line 29, in wrapper  
raise PermissionError(exc.reason) from exc  
PermissionError: Permission denied for user ychen52 on host seadragon

Fetching  
2024-09-23 15:12:46,436 ERROR: failed to pull data from the cloud - 1 files failed to download  
Traceback (most recent call last):  
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/dvc/commands/data\_sync.py”, line 35, in run  
stats = self.repo.pull(  
^^^^^^^^^^^^^^^  
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/dvc/repo/ **init**.py”, line 58, in wrapper  
return f(repo, \*args, \*\*kwargs)  
^^^^^^^^^^^^^^^^^^^^^^^^  
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/dvc/repo/pull.py”, line 30, in pull  
processed\_files\_count = self.fetch(  
^^^^^^^^^^^  
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/dvc/repo/ **init**.py”, line 58, in wrapper  
return f(repo, \*args, \*\*kwargs)  
^^^^^^^^^^^^^^^^^^^^^^^^  
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/dvc/repo/fetch.py”, line 200, in fetch  
raise DownloadError(failed\_count)  
dvc.exceptions.DownloadError: 1 files failed to download

2024-09-23 15:12:46,443 DEBUG: Analytics is enabled.  
2024-09-23 15:12:46,519 DEBUG: Trying to spawn [‘daemon’, ‘analytics’, ‘/var/folders/7k/51swwyys5gb2ky6dknfr9r10y8m77l/T/tmpoj682qmq’, ‘-v’]  
2024-09-23 15:12:46,524 DEBUG: Spawned [‘daemon’, ‘analytics’, ‘/var/folders/7k/51swwyys5gb2ky6dknfr9r10y8m77l/T/tmpoj682qmq’, ‘-v’] with pid 61358

#Here is the .ssh/config  
cat ~/.ssh/config  
#Host [github.com](http://github.com)  
Host github.  
AddKeysToAgent yes  
UseKeychain yes  
IdentityFile ~/.ssh/id\_ed25519

---

_[View the full topic](https://discuss.dvc.org/t/dvc-ssh-error-errno-111-connect-call-failed/2220)._
