How can I upload files to a browser from remote? - ssh

I am quite new into the world of remote connections so I don't really know what is possible and what is not.
I have established connection to a remote pc over ssh. I need a large file from this remote to be uploaded to a file-sender internet page. One way is to simply copy the file from remote to my local and subsequently upload from local but I want to speed up this task. I am wondering if there is a (safe) way to 'browse' through files or select files located on remote when selecting files in the upload website?
For illustration, think of selecting an image for Google's search by image and this image is located on my remote computer. After hitting the 'select a file' button, want to be able to pick a file from my remote computer to have it uploaded via this button. My question is not how to upload a file to a remote server.
The remote computer does not have any browser or so installed, it is just a collection of file directories and media disk connections that I can access. (I don't have all the details but this is all I know) That's why using the upload website through an internet browser, for example with a GUI as Ubuntu's Genome, is not an option.
Also, the upload internet page is not a specific url to upload to, so a solution like wget does not work either.
I have tried googling with the question in my title but this leads to me to solutions like Chrome's Secure Shell. I don't completely understand what I can do with it but it feels like that does not allow me to do what I want.
fyi, I work on Windows (using Ubuntu occasionally)

I have found the answer on: http://makerlab.cs.hku.hk/index.php/en/mapping-network-drive-over-ssh-in-windows .
Need to install WinSfp and SSHFS-Win. Then in windows file browser, mount a new network drive with Folder: \sshfs\username#domain . I can now browse the files through the windows file browser and thus can select files for upload

Related

Direct link to local kml file

I run an apache webserver on ubuntu 16.04
I am creating many kml files on my server and I want the user to click a link that will automatically open the kml on google maps (and not download it)
e.g. click to open map doesn't open the file, it only downloads it.
If I host the file on google drive and get the shareable link to it, and I use this link everything works great (I can use it as a simple href in a HTML page).
Unfortunately, doing it through google drive is not a feasible option for me (too many files, high update rate).
Is there any other way I can do it with local file?

Uploading image file from VBA Excel

I know this question has been asked a lot of times already but unfortunately none of the answers have helped me. I want to upload an image file to my remote Web server (Apache). In my Excel cell, I have the file path of an image and want to use VBA to upload that file to a remote server.
I can't use any 3rd party tool in conjunction (like WinSCP), because that will make my product not very "portable-friendly". I was fine with Windows FTP, but it doesn't seems to be supporting passive mode and hence I also can't use that.
There are some threads which used IE to upload the file, and some which I believe are uploading via POST request by reading file in binary mode.
I want to replicate something similar to uploading files via HTTP POST on a website.

How to bypass red5 demo page on start up?

At present, I start up red5 in linux command line ./red5.sh and it runs the script. Then I go to http://localhost:5080 demos page to set up my camera and audio input and all works fine in testing the stream both on demo page and in swf of my webpage.
Question is, do I need to include some java and/or action script for the swf player to
bypass the red5 demo page so I can directly connect my input and stream in the code of the page? Also so only logged in webpage viewers can connect?
Overall wondering if there is a way of hiding the server stream from anyone not logged in to view it on my site? I understand in webapps folder somewhere there is the hosts list of IP but it would be impossible to know the IP of the viewers as opposed to unwanted viewers or bandwidth stealers.
I am trying to set up a site for poetry readings and make it so readers can record live to my server and then logged in viewers can view from my website. I am trying to figure out whether I must have that red5 page open and if that doesn't pose some kind of risk.
Found my own way of doing this just by removing and renaming files and folders.
If you go to usr/local/red5/webapps here lies all the directories for viewing when you go to default port 5080 so I simply installed the applications I needed and then took everything out of there except those applications I wanted and needed to run. I took out all and placed it in a folder in /var directory named it red5_movedstuff in case I want access to further applications later on.Then I renamed the applications I am using in webapps folder and kept admin folder to access them but I renamed my applications and had to importantly rename also in WEB-INF for each application name change.
Now if someone goes to myip:5080 they get a blank page and by changing names of applications I've hidden my directories beyond that including list of streams.

How do I connect to Access database on local network in VB.net?

My MS access database is located here :
http://192.168.202.1/dbname.mdb
Other computer in LAN network have VB.net s/w installed.
How do I connect to this db?
Thanks in advance :)
Actually, your terminology you using is wrong. You don't connect to a word file. You don't connect to a power point file.
So you have to keep in mind here you are not really connecting to some text file or mdb file that just happens to be sitting on a hard drive.
You are thus simply opening a file.
I mean it is silly to say we connect to a word file, or we connect to a Power point file. So in the case of the office suite and those basic simple files that resides on the disk drive?
We are talking about plane Jane windows file.
A horse is a horse is a horse.
A file is a file is a file.
So you don't connect to the jpg file sitting on the hard drive, you OPEN the jpg file. So if you talking about your current setup it best to use the correct terminology here. You are not connecting to that Access mdb file, but are in fact opening a plane Jane windows file. If you look close at your connection string, it will ALWAYS have a fully qualified windows path name in it that resolves to a file sitting on a folder.
So if you place that file on some server, say web server, then then you still faced with having to open that windows file. This is NOT ANY different then wanting to open a power point file. That means if you going to connect over the internet then you need to EXTEND the windows file system (this means you will need some kind of VPN). At the end of the day, if you cannot use windows networking to brwose and open the folder where that file resides, then you cannot open that file with Access (or more specific in your case the JET data engine).
So for example, if the server where the file resides is a non windows box, say Linux, then you need to "add or use" or "install" the windows file and networking system on that box. A common choice in Linux is to install and run Samba on that computer.
Keep in mind that in the case of using SQL server, then you are connecting to a SERVICE running ON THAT server. In this case then you not opening a file on the remote box, but are simply using a socket (tp/ip) connection to some service. So you not just opening a silly old windows file that happens to be a mdb file on that system in this case.
So as such when you use FTP or http, these are not real "windows" networking systems that allow you to open + use a plane Jane windows file.
So as such, just keep in mind the concept here that you are NOT connecting to some file, but you are just going to OPEN the file.
You need to be able to OPEN the file, and you need to be using the windows networking system to do this open file in the case of Access. I mean, you don't have to install Access(JET) on the target computer. You don't have to install Power Point on the target computer to open a power point file. So you are ONLY opening a file that just happens to be on some other computer.
As such, your path name of http: is not allowed since that is now using http, and not windows file/networking system. As such a path name has nothing to do with windows networking and opening of a simple file sitting on the hard disk. So HTTP or FTP etc. are not based on windows networking and file system.
I don’t think this basic concept is too hard to grasp, but at the end of the day the concept you need to grasp and learn is that when you open a windows file sitting in a folder on the hard drive, then then will you need the windows file system to open such files. The idea and concept of opening a file in a folder might be new to you, but it is a basic requirement and understanding you need to solve this issue.
As noted, you can consider a VPN, but I explain why such a setup is not going to work in this article:
Using a wan with ms-access? How fast, how far?
http://www.kallal.ca/Wan/Wans.html
I suppose another possibility would be to consider the new web publishing ability that Access has. In the following video note how I switch to running the Access application 100% in the browser. The resulting application does not need any ActiveX or Silverlight. So the web pages run + work fine on my smartphone and even my iPad.
http://www.youtube.com/watch?v=AU4mH0jPntI
So you can use the new web publishing feature, and that would allow one to use http: to use the application.

External access to file shelf

I am testing a Google Chrome notebook. Whenever I download a file it goes to a folder called "File shelf" which is somehow connected to my Gmail account. Is it possible to access this folder on a "normal" system running any browser? I did not find how to do it yet. In general, is there a description on how to manage this folder: delete, copy to external storage (USB), etc?
The 'File shelf' is not connected to your Gmail. It's a place on the SSD. If you click 'Ctrl-M' you will get a folder with all the files on your local SSD.
Once you are in the folder - right click will give you the options to delete/rename each file.
If you want wish to do more with this new File API - here is a post I've wrote on it.
Good luck.