Access user computer or hosting server directory from sftp - asp.net

I have a sftp server and I developed a interface website between users and sftp files using c#.NET and SharpSSH for download,upload file operations etc
Here is my problem: downloading a file from sftp to my computer works perfect. It copies the file to anywhere I want. But after I publish the website from a server, it doesn't work. Because I couldn't copy file to neither a directory in that server or client's computer. It isn't allowed default I think..
How can I solve to download a file from sftp to client computer issue using sharpssh?
Thanks..

Related

Is it possible to access a windows network or local drive from a remote Jupyter Notebook server running on Linux?

I have a web address that brings me to a remote Jupyter Notebook (Linux) server that I access from my Windows machine but need access to data on a local drive.
I have tried ssh and changing the config file, as well as changing the directory command but keep getting no location found
You can use file upload widget from ipywidgets to interact with your local storage via browser client. More info in ipywidgets docs.
You need to upload and write to the server.

Directory Does Not Create Using IIS Server

I am making a web application in asp.net there i am making a directory in F drive through c# code. The code runs fine on my system and in IIS also but the problem is that when my partner using the same ip of my system the directory is not being created in his system i want who ever using the ip of my system the folder should be created and files should be save on that.In the second image my partner is running the application the files get save on my directory not on his system
check your local directory it will be save there not on the system using this ip address.

Need help for File Upload between webserver and file server in amazon

I Have two separate window based instances in Amazon EC2.
(a) Web Server (b) File Server
In Web Server, i hosted a NET application under IIS. I have a asp.net file upload control and i want to upload file to File Server by using this control. but when i am trying it is showing
Network path is not found error. I am using below command.
FileUpload1.PostedFile.SaveAs(Server.MapPath("#"\server ip\Uploaded\"));
Thanks in Advance.

How to copy files from a server to other IP

I need to copy some files from from a server to other computers that I only know the IP address. I know the source file and the destination file. I am using Windows 2008 R2.
You have few options like
Go with Microsoft synctoy
FTP
Develop a client/server application responsible for reading/writing files.
winscp

Windows Server 2008 r2 security against uploaded scripts

I have developed an asp.net application and windows desktop application system. My clients can upload images to asp.net application(only one folder). So if someone uploads a shell script and executes, one can take the other clients' database files.
Asp.net application works under windows server 2008 r2(web server edition) OS and IIS 7.5.it has administrator rights for now. I don't have a domain and domain controller so i don't have advanced user rights management. And "applicationpoolidentiy" doesn't help(i even can't open page.). I thought maybe i can deny executing of uploaded scripts? Is it possible. Or are there any better ways to secure server from uploaded scripts?
You should change your upload page to reject all files with extensions that aren't images using an extension whitelist.
For additional security, you should configure IIS to not execute scripts in that directory.

Resources