Code Monkey home page Code Monkey logo

chromeos-filesystem-sftp's People

Contributors

fedoracooper avatar tjibbevanderlaan avatar yoichiro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chromeos-filesystem-sftp's Issues

NaCl module crashed. Unmounted.

SFTP File System 1.7.6

background page console:

background.js:1407 Object {type: "mount", serverName: "192.168.1.101", serverPort: "22", authType: "keyboard-interactive", username: "cbandy"…}authType: "keyboard-interactive"mountPath: "/Users/cbandy"password: "x"privateKey: ""serverName: "192.168.1.101"serverPort: "22"type: "mount"username: "cbandy"__proto__: Object
background.js:177 mountPath: /Users/cbandy
background.js:223 Object {message: "fingerprint", request: 0, values: Array[2]}
background.js:638 Object {requestId: 0, fingerprint: "a7d83eed2f146e67fcd717106ddda2e5", algorithm: "ssh-rsa"}
background.js:1407 Object {type: "accept", requestId: 0, fileSystemId: "sftpfs://192.168.1.101:22/cbandy"}
background.js:648 allowToConnect
_generated_background_page.html:1 NativeClient: NaCl module crashed
background.js:233 -1
background.js:721 onNaClModuleCrashed - -1
background.js:1074 doUnmount
background.js:1087 _doUnmount
background.js:1092 sftpfs://192.168.1.101:22/cbandy
background.js:1303 deleteTaskQueue: sftpfs://192.168.1.101:22/cbandy
background.js:1343 deleteMetadataCache: sftpfs://192.168.1.101:22/cbandy
extensions::lastError:133 Unchecked runtime.lastError while running fileSystemProvider.unmount: NOT_FOUND
    at null.<anonymous> (chrome-extension://gbheifiifcfekkamhepkeogobihicgmn/background.js:1093:43)
    at null.<anonymous> (chrome-extension://gbheifiifcfekkamhepkeogobihicgmn/background.js:1134:17)

ui_log:

[49,3057811456:02:12:39.123309] Native Client module will be loaded at base address 0x0000000000000000
SftpInstance::SftpInstance
SftpInstance::SftpInstance End
SftpInstance::HandleMessage
SftpInstance::HandleMessage connect 0
SftpThread::SftpThread
SftpInstance::HandleMessage SftpThread instance created
SftpThread::ConnectAndHandshake
SftpThread::ConnectAndHandshake Thread started
SftpInstance::HandleMessage End
SftpThread::ConnectAndHandshakeImpl
SftpThread::InitializeLibssh2
SftpThread::InitializeLibssh2 rc=0
SftpThread::ConnectToSshServer
SftpThread::ConnectToSshServer sock=3
SftpThread::ConnectToSshServer sockaddr_in ready
SftpThread::ConnectToSshServer rc=0
SftpThread::InitializeSession
SftpThread::InitializeSession Initialized session 
SftpThread::HandshakeSession
SftpThread::HandshakeSession rc=0
SftpThread::GetHostKeyHash
SftpThread::GetHostKeyHash hash=a7d83eed2f146e67fcd717106ddda2e5
SftpThread::GetHostKeyMethod
SftpThread::GetHostKeyMethod method=ssh-rsa
SftpInstance::OnHandshakeFinished
SftpInstance::SendResponseAsStringArray
SftpInstance::SendResponseAsStringArray End
SftpThread::ConnectAndHandshakeImpl End
SftpInstance::HandleMessage
SftpInstance::HandleMessage authenticate 0
SftpInstance::HandleMessage Re-use SftpThread instance
SftpThread::Authenticate
SftpThread::Authenticate Thread started
SftpInstance::HandleMessage End
SftpThread::AuthenticateImpl
SftpThread::AuthenticateUser
SftpThread::AuthenticateUser auth_list=publickey,keyboard-interactive
SftpThread::AuthenticateByKeyboardInteractive
** abort() called

** Signal 4 from untrusted code: pc=2632b0
[17069:17091:0501/211239:ERROR:nacl_process_host.cc(296)] NaCl process exited with status 64512 (0xfc00)

about:

Version 43.0.2357.46 beta
Platform 6946.31.0 (Official Build) beta-channel daisy
Firmware Google_Snow.2695.117.0

Currently on beta channel.

WebKit
537.36 (@c618a4adf8a986b6e968600d0dbcbb6cac93a6bf)

V8
4.3.61.14

User Agent
Mozilla/5.0 (X11; CrOS armv7l 6946.31.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.46 Safari/537.36

Command Line
/opt/google/chrome/chrome --ppapi-flash-path=/opt/google/chrome/pepper/libpepflashplayer.so --ppapi-flash-version=17.0.0.176-r1 --ppapi-flash-args=enable_hw_video_decode=1 --enable-fixed-position-compositing --enable-impl-side-painting --max-tiles-for-interest-area=512 --ui-enable-per-tile-painting --ui-prioritize-in-gpu-process --use-gl=egl --gpu-sandbox-failures-fatal=yes --gpu-sandbox-start-early --enable-logging --log-level=1 --use-cras --user-data-dir=/home/chronos --max-unused-resource-memory-usage-percentage=5 --login-profile=user --has-chromeos-keyboard --default-wallpaper-large=/usr/share/chromeos-assets/wallpaper/default_large.jpg --default-wallpaper-small=/usr/share/chromeos-assets/wallpaper/default_small.jpg --child-wallpaper-large=/usr/share/chromeos-assets/wallpaper/child_large.jpg --child-wallpaper-small=/usr/share/chromeos-assets/wallpaper/child_small.jpg --guest-wallpaper-large=/usr/share/chromeos-assets/wallpaper/guest_large.jpg --guest-wallpaper-small=/usr/share/chromeos-assets/wallpaper/guest_small.jpg --enterprise-enable-forced-re-enrollment --enterprise-enrollment-initial-modulus=13 --enterprise-enrollment-modulus-limit=17 --vmodule=screen_locker=1,webui_screen_locker=1,*ui/display/chromeos*=1,*ash/display*=1,*ui/ozone*=1,*zygote*=1,*plugin*=2 --login-manager

Build Date
Thursday, April 30, 2015

Unable to remount after a failure.

  1. Launch SFTP app.
  2. Enter host, login, password.
  3. Choose 'keyboard-interactive'.
  4. Mount.
  5. Fails with a message that keyboard-interactive password is not supported.
  6. Change to 'password'
  7. Hit Mount again.
  8. Fails with a message 'Already mounted: sftpfs://...'

Expected:
Successfully mounted.

Actual:
Can't remount. It says it's mounted, but it's not mounted in Files app.

Workaround:
Disable and re-enable the extension in chrome://extensions.

Allow recognizable server name in kept connections

It is nice to be able to retain a list of servers to which one has previously connected ("KEEP"). However, I have a number of remote servers which are only known by their numeric IP address (e.g., 111.222.333.444) and don't have a DNS name to use as a mnemonic. Would it be possible to add a label or nickname field to each server record so that one can easily distinguish between servers which have similar IP addresses? Thanks.

connect() fails for local ip's

It seems mounting a server fails if the ip address provided is a local IP. Program fails with notification "connect() failed -1 101" This appears to be something to do with the socket connecting as the 101 error code corresponds to socket()'s error code for EADDRNOTAVAIL for addresses not in the routing table.

Luděk

Hey.
I request you to SFTP. I want this client to add to the Chromebox / Moo4U / files. This client is suitable for downloading and storage / video, photo, doc / USB on the Asus RT-AC68.
1-111 I have a mistake, you can advise me what exactly I fill in Mont a new SFTP server and added to the drawing.
The second question is on the File System for Onedrive. I have always log on, you can not set so I did not have to login every time
Thank you.
Ludek
p_20151007_130645_1_p
nakres 1_20151007_130645_1_p

p_20151007_130238_1_p

Save password into Profiles

It would be nice if it would be possible to save passwords into profiles so I can just reconnect without entering my 40 char password each time..

Copy hangs on git repos

When copying from a remote machine to local, if the directory has a .git subdirectory it hangs on copy. Eventually, I get a notification that the copy operation failed.

screenshot 2015-04-02 at 10 59 13

Unable to open file with SFTP -31

Client: Acer Chromebook 13 (ARM)
Server: freeSSHd 1.3.1 on Win7x64

I can logon to the server, browse directories, but all directories are empty. Running WinSCP as client locally does not have the same problem (it's not a file permissions issue).

screenshot 2015-03-29 at 11 38 16 - copy

Does this work in an an app's file-picker?

I am running an ssh server in my crouton chroot on a pixel 2015. I can mount the localhost sftp in the files app and access all files in the chroot which is awesome.

When I open a file dialog from a chromeos app, like using Add folder to workspace in the chrome dev tools inspector, I only see the Downloads folder. There is a button + Add new services in that dialog but this service doesn't show in the list. I assume this is because I already added the service to the files app and it has been removed from the list.

If I leave the app dialog open and do Mount a new SFTP server it doesn't add the service to the dialog.

Is there any way to use this service in an app's file-picker?

cannot connect to server

I am trying to connect to my Arch linux system. This used to work in the past, but doesn't now. SSH/SFTP is installed and working with other apps on my chromebook. All I get is Server disconnected. I tried to follow your instructions to get the console log at https://github.com/yoichiro/chromeos-filesystem-sftp/wiki/How-to-Capture-the-Console-Log-of-DevTools. However, there is no option for background page. I have purchased this software and would like help so I can use it.

Download triggering Intrusion Detection alert

I realize this isn't something easy to handle and it's technically a false alert, but when trying to install your SFTP plugin, our company firewall blocked it due to an Intrusion Detection alert:

2015-03-19 10:24:09 192.168.X.X:56422 31.13.69.160:80
warn idp ACCESS BLOCK
Rule_id=11 [type=Sig(1058279)] WEB SQL injection attempt -14 Action: Reject Both Severity: high

Have never seen this when installing any Chrome extension before.

Buffalo LinkStation empty directory

Device: Samsung Chromebox 3
Server: Custom Buffalo LinkStation on a dynamic IP address
OS: Chrome (stable) 40.0.2214.114
Other: Device registered with a domain management licence

I can successfully launch the app and enter my FTP credentials. Upon hitting "Mount", the mountAttempt{} message appears at the bottom left and subsequently mountSucsess{} with the fingerprint.

When I open the mounted NAS LinkStation drive (with correct credentials), the directory is completely empty.

This happens when the credentials are "kept" with and without password saving and happens whether or not a root is specified.

I can confirm the SFTP credentials are correct and using SSH2. I have used multiple servers to test this out - only the LinkStation has problems with this.

Thanks for this awesome app!
Jack.

Nacl module crashes when listing directories.

I tried to connect to my FTP account. The FTP volume is correctly mounted, but when I click on it in Files app, it shows spinner for around a minute, then the NaCL module crashes.

Unable to init SFTP Session -21 11

Hi,

I am trying to use this app for my Synology. However, when I try to connect I run into the following error:
Unable to init SFTP Session -21 11

Does anyone have a suggestion what might be the cause?

Kind regards,
Ronald

Slow performance with large files; using Base64

First of all, excellent job with this app! This is a very valuable tool.

I am getting very poor read performance on my LAN via this SFTP plugin. Getting a large directory listing is pretty slow, but downloading large files really makes it obvious. I am getting about 5Mbit / sec on my LAN over wireless N, on an Asus C300 chromebook. I am connecting to a Linux machine running Fedora 20. When I shared the same files via HTTPS, I was able to download at more than 10 times the speed, around 60-70 Mbit / sec. Something is not right.

I spent some time digging into the code. This stuff is all new to me, but after some reading, it looks like one possible reason is the use of JSON for passing of all data between NaCl and Javascript. The use of JSON has apparently forced you to Base64 encode and decode all the data. Thus, for every chunk of data read from the network, we are encoding into Base64, wrapping in JSON, sending to Javascript, which then decodes the Base64 and finally sends the binary data to the File System API.

Now maybe this works okay on high powered machines with tons of CPU, but this Asus is not the fastest of the chromebooks. CPU usage is definitely high while transferring files. I did some research into passing of data via Pepper, and found that Pepper clearly supports binary data via the pp::VarArrayBuffer datatype. I suppose that JSON is being used because it can handle multiple values (request ID, data, etc.). However, it looks like the pp::Var datatype used by Pepper supports multiple values in a key -> value format using pp::VarDictionary.

So in summary, I suspect Base64 / JSON is the cause of the performance issues, and it should be replaced by using VarDictionary containing strings and a VarArrayBuffer to avoid unnecessary translation.

Of more minor concern is the buffer size when pulling data from SFTP; it looks like 2KB is being used as the buffer / chunk size, which might not be very efficient due to the typical TCP/IP packet size of 1.5KB. SFTP supports up to 32KB, and I suspect 8KB to 16KB would improve performance.

Can't save a new file

When I save a new text file with the application "Text", the file was created, but the file size is zero.

Error when starting up SSH session -13 11

Hi
sftp error

I have just installed the SFTP file system app on ChromeOS (Toshiba Chromebook 2) and can not get it to connect.

I receive the errors in the attached screenshot.

Any advise?

Thanks,

Error When Starting Up SSH session -13 11

when i try to connect to my ftp server on port 21 using the correct password and username and host i press mount after filling out the info and like 20 or 15 minutes later i get the error "Error when starting up SSH session -13 11" do i have to fill out the root because i dont know exactly where it is on the server so do i need to know that or do i need some other software or application for chromebook to make it work im on Chromebook Acer C720.

Connects all now fail

This has been working beautifully for a couple of months. In the last couple of days, none of my saved connections work (to different hosts). I can SSH to them all just fine, but SFTP now gives me connect (1111) errors on everything.

Solution for: Some operations are taking longer than expected. Do you want to abort them?

Greetings I am using a chromebook with version:45.0.2454.86 (64-bit)

I am running SFTP and Caret.

I set up three sftp connection to remote linux servers.

From within Caret, I can open each connection and see the initial directory. But when I drill down or open a file I get this message:

Some operations are taking longer than expected. Do you want to abort them?

Once I get that message and close out of the dialog box, I can no longer open the sftp connection.

Do you have any suggestions for working around this issue?

Regards,
Michael

UI issues.

These are small things, but very visible. The window looks good on the screenshot in the web store, but on my chromebook:

  1. Top margin is much smaller than all other margins.
  2. Left and right margins are too large (3 cm on my screen).

Unable to open file with SFTP-31 11

Hi,

Seems a great app, except a problem discovered:

Message continuously pops up as Unable to open file with SFTP-31 11.

Any solution please?

Unable to init SFTP session -21 11

Thank you for chromeos-filesystem-sftp, it is very nice!

When I press "MOUNT", and then "ACCEPT", error is: Unable to init SFTP session -21 11

Authentication type "Password" is not supported 0 11

I'm trying to connect to my home computer via SFTP on my Asus C300 Chromebook. Everything is setup correctly but whenever I try to connect is says "Authentication type "Password" is not supported 0 11" Is anyone else having this issue? Could we get some kind of fix? Thanks.

Reduce the number of notifications displayed on errors

Often when I try to open a folder I will have several errors show up saying it had some issue or another trying to open the folder even though the folder opens fine. I'm fine with being alerted to a potential problem, but I think it might be best to either reuse the same notification if the error is the same, or have a generic error pop up that has an action when clicked on to display an error log.

SFTP connection dies after computer sleep

I'm not sure if this is expected behavior, but most times after my Chromebook goes to sleep for with an SFTP connection, then wake it up awhile later, I get one or more errors trying to access the SFTP share.

Typically I get "Unable to open dir with SFTP -43 0".

It appears that after the connection dies, there's no way to revive it except to close the connection and reconnect. Is there any way to setup SFTP to automatically reconnect when Chrome wakes up?

Performance.

I just checked version 1.3.0 and it's better but still slow. It seems that you're making a request for each onGetMetadataRequested, which is an overkill. I'd suggest you to cache metadata during listing directories (onReadDirectoryRequested) and use it for onGetMetadataRequested. That would boost the performance drastically. What do you think?

WDMYCLOUD can't connect

After setting up a connection to my WDMYCLOUD and clicking Mount button I get "hostent is null 0".

I get an error every time I try to add your app on chrome os Dev build

I get an error every time I try to install this app on my Chrome OS device. This is the error: Package is invalid. Details: 'The 'fileSystemProvider' permission requires the 'file_system_provider_capabilities' section to be specified in the manifest.'.

I am running on Chrome OS build: 44.0.2403.5 dev (64-bit)

Unable to copy a directory / folder to remote sftp mount.

When trying to copy a directory / folder to a remote mount, I get the error "Copy operation failed. The file or directory is not usable." Files can be copied perfectly and I can manually create the directory with the right click, create folder menu.

Unmount?

Is there any way to unmount a drive to a server that is no longer accessible?

Current Behaviour:

  • Notification that the server is taking too long to respond. Clicking abort allows the Files app to load.
  • No close button to remove the drive
  • Clicking eject has non effect

Expected Behaviour:

  • Clicking eject or the close button should remove it from the Files app

Can't delete non-empty directories

Deleting folders that contain one or more files results in the Files manager spitting out "An error occurred. Some items may not have been deleted."
To delete the folder, I have to delete all files inside it. Then, the now-empty is able to be deleted.

P.S. Love the app! Props for being one of the first to use this API, and doing it really well.

Not seeing SFTP dialog

I just installed this app from the Web Store and when I click on the SFTP icon in my apps, nothing seems to happen. No dialog, no message at all. I Opened the Google Task Manager and I can see a process being spawned called:

Background Page: SFTP File System

But it disappears after 10-15 seconds. Any help would be great. Thanks, yah.

App Won't Open

Hi,

I am hoping to use the Chromebook App. I am having issues getting the app to open. When I click the icon that has been installed on the App menu on ChromeOS there doesn't appear to be any response. Other apps are opening fine.

I am using a Toshiba Chromebook 2.

The app looks awesome and sounds like exactly what I need for getting an efficient development environment on my laptop.

Thanks.

Allow remembering past connections

It seems that the SFTP setup dialog forgets everything and I will have to specify the server name, username, and private keys. Can it remember the past connections? I believe a user will connect to limited number of connections (usually 1-3 remote servers).

To emphasize the security, I believe this should NOT remember the password/passphrase, but this can store the private key, as SecureShell does.

Does your App work with USB Drives plugged into router??

Hi there,
I would love to have your app work w. my external hard drive plugged into my router. Will it work?
Specifics:
Acer Chromebook c720p and Dual Band ASUS Router. Iomega usb 2.0 hDD made by Samsung

I can successfully view files in my web browser, so I think I have that part set up correctly. The drive will not mount...I;ve checked stuff like my port number. I can get it to where it doesnt show error messages..it just wont mount

Thanks for any help

Keep silence after showing "confirm fingerprint"

To developer:
I have active the password mode in my router system, and using password mode via the client.
But after I inputting password and IP ,etc ,and select mount .A window pop out and says
"confirm fingerprint
Current :ssh-rsa - xxxxxxxxxxxxxxxx
decline accept“
After I click accept ,It goes silence!!!

BTW, other modes also shows error that is more easily to understand.
Thank you
Best wishes.
A fan of Chrome OS

Listing directories very slow.

For a directory with 20 files, it takes couple of minutes to list them. Listing a directory with 2 files only is not so much faster, it's also at least a minute.

Connection times out

Connecting to standard OpenSSH server on Debian host on Google Compute Engine with a public key from Chromebook on Beta channel.

Initial connection is fast and filesystem is mounted. However navigation is slow and I get repeated pop ups with message "Some operations are taking longer than expected" with option to click Abort. Clicked on Abort but message continues to pop up.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.