Open Trudko opened 9 years ago
Hello Trudko, thanks for your question!
Let me state my understanding of this question so we are on the same page:
x.x.x.x
username
key.pub
is saved in the linux server's ~/.ssh/authorized_keys
filessh username@x.x.x.x:/absolute/path/to/dir
is working and not returning any errors255
I'm assuming (please correct me if I'm wrong.)Can you please provide a screenshot of your settings for Silent Sync from atom's settings pane(and the contents of silent-sync.json
if you are using a configuration file?)
As far as I know, no additional setup is needed to get it working in atom (provided that ssh is working in Git Bash,) except that you may need cwRsync or cygwin installed to obtain the rsync module on windows.
If possible, try the same setup on a mac, and connect to the same linux server, as this package is currently lacking testing in a windows environment(it's on the todo list, I promise!)
Oh snaps, I missed the title "Error 1". Try filling in a random value for exclude and include, and see if the problem is still present.
On Thu, Mar 12, 2015 at 12:47 AM, Trudko notifications@github.com wrote:
Hi, I can't connect to server and I am curious what the problem might be. As a host I have ip of the server (which I can ping). I am connecting from windows machine to local linux server. I have ssh keys setup at least I can connect to them using git bash but I am not sure if I have to do something extra to make it work from Atom.
Reply to this email directly or view it on GitHub: https://github.com/ben-z/Silent-Sync/issues/1
If nothing else works, can you open the JavaScript console in Atom by pressing ctrl-shift-j and post the output you see?
On Thu, Mar 12, 2015 at 11:16 AM, Ben Zhang benzhangniu@gmail.com wrote:
Oh snaps, I missed the title "Error 1". Try filling in a random value for exclude and include, and see if the problem is still present. On Thu, Mar 12, 2015 at 12:47 AM, Trudko notifications@github.com wrote:
Hi, I can't connect to server and I am curious what the problem might be. As a host I have ip of the server (which I can ping). I am connecting from windows machine to local linux server. I have ssh keys setup at least I can connect to them using git bash but I am not sure if I have to do something extra to make it work from Atom.
Reply to this email directly or view it on GitHub: https://github.com/ben-z/Silent-Sync/issues/1
Hi I tried
{
"enabled": true,
"host": "ip adresss",
"port": 22,
"username": "trudko",
"remoteDir": "path/to/project",
"exclude": [
"/resources"
],
"include": [
"/src"
]
}
and
{
"enabled": true,
"host": "ip adresss",
"port": 22,
"username": "trudko",
"remoteDir": "path/to/project",
"exclude": [],
"include": []
}
Console
1 - (line) C:\path\to\my-folder\.atom\packages\silent-sync\lib\silent-sync-view.coffee:73
rsync -avz --rsh=ssh --delete --exclude=/resources --include=/src "C:\\path\\to\\project/" trudko@ipaddress:/path/to/project - (line) C:\path\to\my-folder\.atom\packages\silent-sync\lib\silent-sync-view.coffee:74
Looks like the rsync module is interpreting the project path as a remote location (Starting with C:
).
I'm on the go this week and won't have access to a computer until next Sunday. I will look into this ASAP when I get back.
On Fri, Mar 13, 2015 at 1:23 AM, Trudko notifications@github.com wrote:
Hi I tried
{ "enabled": true, "host": "ip adresss", "port": 22, "username": "trudko", "remoteDir": "path/to/project", "exclude": [ "/resources" ], "include": [ "/src" ] }
and
{ "enabled": true, "host": "ip adresss", "port": 22, "username": "trudko", "remoteDir": "path/to/project", "exclude": [], "include": [] }
Console
1 - (line) C:\path\to\my-folder\.atom\packages\silent-sync\lib\silent-sync-view.coffee:73 rsync -avz --rsh=ssh --delete --exclude=/resources --include=/src "C:\\path\\to\\project/" trudko@ipaddress:/path/to/project - (line) C:\path\to\my-folder\.atom\packages\silent-sync\lib\silent-sync-view.coffee:74 --- Reply to this email directly or view it on GitHub: https://github.com/ben-z/Silent-Sync/issues/1#issuecomment-78863940
Here's another log entry from my Windows laptop (in case it helps). My configuration almost equals that of @Trudko.
rsync -avz --rsh=ssh --delete --exclude=/.git --exclude=.remote-sync.json "D:\\path\\to\\dir\\io.roelof/" www@roelof.io:/domains/roelof.io/public_html
Thank you @roelof, I will be home tomorrow and will look into the problem!
On Wed, Mar 18, 2015 at 6:01 PM, Roelof notifications@github.com wrote:
Here's another log entry from my Windows laptop (in case it helps). My configuration almost equals that of @Trudko.
rsync -avz --rsh=ssh --delete --exclude=/.git --exclude=.remote-sync.json "D:\path\to\dir\io.roelof/" www@roelof.io:/domains/roelof.io/public_html
Reply to this email directly or view it on GitHub: https://github.com/ben-z/Silent-Sync/issues/1#issuecomment-83241240
So I've worked on this today and it seems to be going nowhere (the rsync dependency is non-native in windows and needs something like cwRsync for it to be operational.)
I've put a warning in the Readme and will try again next weekend :cry:. If any of you are interested in helping, please don't hesitate to make pull requests!
I see a need to create issue #5 for Windows Support.
Hi, I can't connect to server and I am curious what the problem might be. As a host I have ip of the server (which I can ping). I am connecting from windows machine to local linux server. I have ssh keys setup at least I can connect to them using git bash but I am not sure if I have to do something extra to make it work from Atom.