Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't support SFTP #38

Open
yangweijie opened this issue Apr 15, 2016 · 9 comments
Open

don't support SFTP #38

yangweijie opened this issue Apr 15, 2016 · 9 comments

Comments

@yangweijie
Copy link

My server only has SFTP no FTP, I think it's better to have a type for SFTP which is also a popular transition way for file

@mpbzh
Copy link
Contributor

mpbzh commented Apr 16, 2016

SFTP will be added to the next release.

@rohitmbnitk
Copy link

when is the SFTP support coming out

@mpbzh
Copy link
Contributor

mpbzh commented May 23, 2016

I can't give you a binding date, but the current master branch is already relatively stable and supports SFTP. Feel free to install that and provide some feedback.

@mpbzh mpbzh modified the milestone: v5.0.0 May 23, 2016
@rohitmbnitk
Copy link

rohitmbnitk commented May 24, 2016

on master branch, on defining sftp config i'm getting following error

Oops. This should not have happened.
Invalid log file type: "sftp" with 500 error.

@mpbzh
Copy link
Contributor

mpbzh commented May 25, 2016

Can you set line 33 in your composer.json to the following:

"syonix/log-viewer-lib": "dev-master"

And then run composer update and try again?

@rohitmbnitk
Copy link

rohitmbnitk commented May 25, 2016

through sftp i'm able to access log files from user home dir

/home/sftp user dir/any files on this path

can i access files from

/var/log/ paths ????

@mpbzh
Copy link
Contributor

mpbzh commented May 25, 2016

So it works with the newer log-viewer-lib version? Good to hear!

Via SFTP you can only access files below the the directory which the SFTP user has access to. I assume that is what you mean by <sftp user dir>. Anything above that folder, like /var/log/ is not accessible, and we do not have any influence on this, as this is standard SFTP behavior.

You could however create a user that has access to the /var/log/ directory, but I strongly advise you to only set it to the subdirectory of a specific program due to security reasons!

@rohitmbnitk
Copy link

Thank you :), also i would like to know is their any way i can grab part of file, like say last 100 lines of file through SFTP.

@mpbzh
Copy link
Contributor

mpbzh commented May 26, 2016

Not that I know of, the file system adapter that we use does not seem to support that. Please let me know if you find a way!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants