Page 1 of 1

Unable to open remote files for editing

Posted: Sat Dec 29, 2007 8:12 pm
by dnedrow
I regularly use BBEdit to edit remote files via sftp, but decided to try to start using oXygen for that purpose, as I really like the validation features as compared to those in BBEdit.

Note that my hosting company allows ssh/sftp access, but does not allow ftp and has no webdav support. Hence my need for sftp.

In any case, I am unable to open any files in oXygen via sftp.

If I attempt to browse a URL, I get the usual ssh warning about key authenticity, after which I select OK to continue connecting. There is a bit of network activity. then the connection fails and oXygen displays "Error: Auth fail" in the browser area of the "Open using FTP/SFTP..." window. Nothing is displayed in the system console.

Now, if I attempt to open using a direct URL, I OK the key warning, and oXygen displays a failed auth dialog. The URL I'm using follows the basic format here:

Code: Select all


sftp://dnedrow@foo.bar.net//home/dnedrow/public_html/blah.xhtml
Frankly, this may be a combination of one of the worst designed dialogs I've ever seen (the open URL window) and one or more actual bugs (the seeming inability to store accepted ssh keys).

Could some person who is able to use this feature take pity on me and walk me through the steps you use to open a remote file via sftp?

As I noted early in this message, I use many different editors to do this all the time, so I'm very familiar with how it should work. BBEdit and others work fine.


-David

Posted: Wed Jan 09, 2008 3:35 pm
by Dan
There are two possibilities to open a resource:

1 Specifying the complete URL of the resource to be opened. In this case you also have to indicate the password, either inline in the URL (separate the user from the password with the ":" character) like:

Code: Select all

sftp://dnedrow:some_password@foo.bar.net//home/dnedrow/public_html/blah.xhtml
or using the User and Password text fields from the dialog.

2. Using the browser. Enter

Code: Select all

sftp://dnedrow@foo.bar.net
in the Server URL text field, then the user and the password in the corresponding textfields, then click Browse and select the resource.

We will look at BB Edit to see how the open URL dialog looks like.
Thank you for the feedback![/quote]

Re: Unable to open remote files for editing

Posted: Tue Mar 01, 2016 12:45 pm
by Zof
Hello,

I have the same problem as dnedrow. I need sftp and when I try to browse url I get 'Error:Auth failed'. I tried both ways of opening the resource mentioned by Dan carefuly following the scheme but the error remains the same. I tried to connect to two different servers and from two different computers with Oxygen installed. I can't find any solution to this problem, help me please.

Re: Unable to open remote files for editing

Posted: Tue Mar 01, 2016 4:08 pm
by adrian
Hi,

What version of Oxygen are you using and on what platform (Windows/Linux/Mac)?
What type of authentication are you using (password, private key) for SSH/SFTP?

Regards,
Adrian

Re: Unable to open remote files for editing

Posted: Tue Mar 08, 2016 4:10 pm
by Zof
I use Oxygen 17.0 on Windows xp and use password athentication for sftp.

Re: Unable to open remote files for editing

Posted: Tue Mar 08, 2016 4:41 pm
by adrian
Hi,

To find out more, you can enable logging in Oxygen. Create a file named 'log4j.properties' with the following contents (for logging remote connections):

Code: Select all

log4j.rootCategory= info, R2

log4j.category.org.apache.http.impl.conn=debug
log4j.category.org.apache.http.impl.client=debug
log4j.category.org.apache.http.client=debug
log4j.category.org.apache.http.wire=debug
log4j.category.org.apache.http=debug
log4j.category.ro.sync.net=debug
log4j.category.ro.sync.fsv=debug

log4j.appender.R2=org.apache.log4j.RollingFileAppender
log4j.appender.R2.File=${user.home}/Desktop/oxygenLog/oxygen.log
log4j.appender.R2.MaxFileSize=12000KB
log4j.appender.R2.MaxBackupIndex=20
log4j.appender.R2.layout=org.apache.log4j.PatternLayout
log4j.appender.R2.layout.ConversionPattern=%r %p [ %t ] %c - %m%n
Copy the 'log4j.properties' file to the Oxygen installation directory and restart Oxygen. Then reproduce the problem and close Oxygen. You will find a directory named 'oxygenLog' on your Desktop and inside it the generated log files(oxygen.log.*). Please zip those files and send them to us (support@oxygenxml.com).
When you generate the log, it would also be helpful if you could provide us a simple step by step procedure of what you did in Oxygen up to encountering the problem.

Note that logging decreases the application performance severely. At the end of the procedure please do not forget to remove the file 'log4j.properties' from the Oxygen installation directory.

Regards,
Adrian