juicedata / juicefs

JuiceFS is a distributed POSIX file system built on top of Redis and S3.
https://juicefs.com
Apache License 2.0
10.77k stars 946 forks source link

juicefs sync can't recognize the hosts defined in .ssh/config #3110

Open zhoucheng361 opened 1 year ago

zhoucheng361 commented 1 year ago

What happened:

chengdeMacBook-Pro:juicefs3 chengzhou$ ls sync/
chengdeMacBook-Pro:juicefs3 chengzhou$ ./juicefs-1.0.2 sync bench1:/root/sync .
2022/12/21 14:38:39.230118 juicefs[57609] <ERROR>: connect to bench1 failed: dial tcp: lookup bench1: no such host [sftp.go:539]
2022/12/21 14:38:39.232356 juicefs[57609] <FATAL>: dial tcp: lookup bench1: no such host [main.go:31]
chengdeMacBook-Pro:juicefs3 chengzhou$ rsync bench1:/root/sync . -a
chengdeMacBook-Pro:juicefs3 chengzhou$ ls sync/
abc abc@def
chengdeMacBook-Pro:juicefs3 chengzhou$ cat ~/.ssh/config 
Host bench1
  HostName 8.210.231.144
  User root
  ForwardAgent yes

What you expected to happen: people may define ssh hosts in ~/.ssh/config file, juicefs sync should recognize the config as rsync do.

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?

Environment:

davies commented 1 year ago

That's too complicated, we may not do this in near future.