Martin Del Torre martindeltorre@yahoo.com [unison-users]
2018-02-08 18:18:21 UTC
Sorry, to bother again!
I installed on High Sierra easily with brew.
Now I seem to have a path problem. I can manually log in via SSH and start unison.
But when I start to try unison to connect via ssh it fails with âFatal error: Lost connection with the serverâ
I tried to compare the PATH like written in the Wiki troubleshooting:
- first: -> ssh ***@192.168.8.100 âecho $PATHâ
- then the login via ssh and then: -> echo $PATH
The two path are not identical. (see the terminal code beneath.)
I changed PermitUserEnvironment in sshd_config into âyesâ although on my system I find it only on /etc/ssh/sshd_config (I hope it is the wright one).
Nothing changed.
I donât find the file /.ssh/environment. Actually on this system there is not even a directory ~/.ssh
Do you know where to find it?
Any suggestions what I should do about the path problem?
One more thing: on my machine (birne:~) I have El Capitan and unison version 2.48.3. On the remote machine (pomme:~) runs High Sierra unison version 2..48.4. But this should not be the problem wright?
Thanks a lot!
Martin
birne:~ martin$ unison work ssh://***@192.168.8.100
Contacting server...
Password:
bash: unison: command not found
Fatal error: Lost connection with the server
birne:~ martin$ ssh ***@192.168.8.100 'echo $PATH'
Password:
/usr/bin:/bin:/usr/sbin:/sbin
birne:~ martin$ ssh ***@192.168.8.100
Password:
Last login: Thu Feb 8 17:43:18 2018 from 192.168.8.101
pomme:~ aline$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
pomme:~ aline$ echo "PATH=$PATH" >>~/.ssh/environment
-bash: /Users/aline/.ssh/environment: No such file or directory
pomme:~ aline$ unison
Usage: unison [options]
or unison root1 root2 [options]
or unison profilename [options]
For a list of options, type "unison -help".
For a tutorial on basic usage, type "unison -doc tutorial".
For other documentation, type "unison -doc topics".
pomme:~ aline$
I installed on High Sierra easily with brew.
Now I seem to have a path problem. I can manually log in via SSH and start unison.
But when I start to try unison to connect via ssh it fails with âFatal error: Lost connection with the serverâ
I tried to compare the PATH like written in the Wiki troubleshooting:
- first: -> ssh ***@192.168.8.100 âecho $PATHâ
- then the login via ssh and then: -> echo $PATH
The two path are not identical. (see the terminal code beneath.)
I changed PermitUserEnvironment in sshd_config into âyesâ although on my system I find it only on /etc/ssh/sshd_config (I hope it is the wright one).
Nothing changed.
I donât find the file /.ssh/environment. Actually on this system there is not even a directory ~/.ssh
Do you know where to find it?
Any suggestions what I should do about the path problem?
One more thing: on my machine (birne:~) I have El Capitan and unison version 2.48.3. On the remote machine (pomme:~) runs High Sierra unison version 2..48.4. But this should not be the problem wright?
Thanks a lot!
Martin
birne:~ martin$ unison work ssh://***@192.168.8.100
Contacting server...
Password:
bash: unison: command not found
Fatal error: Lost connection with the server
birne:~ martin$ ssh ***@192.168.8.100 'echo $PATH'
Password:
/usr/bin:/bin:/usr/sbin:/sbin
birne:~ martin$ ssh ***@192.168.8.100
Password:
Last login: Thu Feb 8 17:43:18 2018 from 192.168.8.101
pomme:~ aline$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
pomme:~ aline$ echo "PATH=$PATH" >>~/.ssh/environment
-bash: /Users/aline/.ssh/environment: No such file or directory
pomme:~ aline$ unison
Usage: unison [options]
or unison root1 root2 [options]
or unison profilename [options]
For a list of options, type "unison -help".
For a tutorial on basic usage, type "unison -doc tutorial".
For other documentation, type "unison -doc topics".
pomme:~ aline$